X-Loop: help-debbugs@HIDDEN Subject: bug#9191: dd does not use the given block size > 2GB Resent-From: Ole Tange <tange@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-To: owner <at> debbugs.gnu.org Resent-CC: bug-coreutils@HIDDEN Resent-Date: Thu, 28 Jul 2011 19:12:06 +0000 Resent-Message-ID: <handler.9191.B.131188032223560 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 9191 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 9191 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.131188032223560 (code B ref -1); Thu, 28 Jul 2011 19:12:06 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jul 2011 19:12:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1QmW01-00067n-EP for submit <at> debbugs.gnu.org; Thu, 28 Jul 2011 15:12:02 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <ole.tange@HIDDEN>) id 1QmSFP-0006aI-4M for submit <at> debbugs.gnu.org; Thu, 28 Jul 2011 11:11:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <ole.tange@HIDDEN>) id 1QmSFK-00060q-60 for submit <at> debbugs.gnu.org; Thu, 28 Jul 2011 11:11:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:53014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ole.tange@HIDDEN>) id 1QmSFK-00060d-0J for submit <at> debbugs.gnu.org; Thu, 28 Jul 2011 11:11:34 -0400 Received: from eggs.gnu.org ([140.186.70.92]:47217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ole.tange@HIDDEN>) id 1QmSFJ-00057u-0J for bug-coreutils@HIDDEN; Thu, 28 Jul 2011 11:11:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <ole.tange@HIDDEN>) id 1QmSFH-000601-VR for bug-coreutils@HIDDEN; Thu, 28 Jul 2011 11:11:32 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:41988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ole.tange@HIDDEN>) id 1QmSFH-0005zp-Sk for bug-coreutils@HIDDEN; Thu, 28 Jul 2011 11:11:31 -0400 Received: by gxk23 with SMTP id 23so2244556gxk.0 for <bug-coreutils@HIDDEN>; Thu, 28 Jul 2011 08:11:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=w1IRtM5gDfSassVUmglT6tJyI/f2tfi9oueM8kSc5eo=; b=L9W8ls1InjLEgm8Wsb6c3eNOzH3LokoNqWYicxKKvt2y7P80jp6CbLIhmYrSyzcCdE mpMpKW7Z7h88qbcVvGB5pQGaeSVgc5mQQJyiAv9VMtxOJmYKoAuugFcflzyRrfSCra29 P9JWZ90FljMNTvy4Jj6zuJMPjL3VZ/2EnX02g= Received: by 10.91.80.6 with SMTP id h6mr88730agl.27.1311865891186; Thu, 28 Jul 2011 08:11:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.241.6 with HTTP; Thu, 28 Jul 2011 08:11:11 -0700 (PDT) From: Ole Tange <tange@HIDDEN> Date: Thu, 28 Jul 2011 17:11:11 +0200 X-Google-Sender-Auth: n3752I84PtxKBKkk-_SOb0-kvtA Message-ID: <CA+4vN7x5GHvyXo1JQk6rCVCy766SdgjCbDGnH7_yVWbgU4+6Sg@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Thu, 28 Jul 2011 15:12:00 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.9 (-----) Hi Coreutils. $ ./dd if=/dev/zero of=/dev/null bs=2G gives the following in 'top': 23182 tange 20 0 2058m 2.0g 616 R 100 25.8 0:25.13 dd So it actively uses 2 G. This is exactly what I would expect. However, if I use 10G it mallocs 10 G but only uses 2 G: $ ./dd if=/dev/zero of=/dev/null bs=10G Apparently all I need to do is: ./dd iflag=fullblock if=/dev/zero of=/dev/null bs=10G But for a normal user (indeed for me before I read the source) this comes as a surprise. I would like to suggest that if bs is bigger than the used block, then you get a warning like this: dd: given bs=10G but used bs=2G. To force using 10G use 'iflag=fullblock' Also the man page should refer to 'iflag=fullblock' under 'bs' and 'ibs'. $ ./dd --version dd (coreutils) 8.12 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Paul Rubin, David MacKenzie, and Stuart Kemp. /Ole
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Ole Tange <tange@HIDDEN> Subject: bug#9191: Acknowledgement (dd does not use the given block size > 2GB) Message-ID: <handler.9191.B.131188032223560.ack <at> debbugs.gnu.org> References: <CA+4vN7x5GHvyXo1JQk6rCVCy766SdgjCbDGnH7_yVWbgU4+6Sg@HIDDEN> X-Gnu-PR-Message: ack 9191 X-Gnu-PR-Package: coreutils Reply-To: 9191 <at> debbugs.gnu.org Date: Thu, 28 Jul 2011 19:12:06 +0000 Thank you for filing a new bug report with GNU. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-coreutils@HIDDEN If you wish to submit further information on this problem, please send it to 9191 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 9191: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9191 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.