GNU bug report logs - #9191
dd does not use the given block size > 2GB

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: Ole Tange <tange@HIDDEN>; dated Thu, 28 Jul 2011 19:12:06 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Jul 2011 19:12:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 28 15:12:02 2011
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>
Subject: dd does not use the given block size > 2GB
To: bug-coreutils@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-Debbugs-Envelope-To: submit
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




Acknowledgement sent to Ole Tange <tange@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils@HIDDEN:
bug#9191; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.