slow down dd - how?
bonomi at mail.r-bonomi.com
Fri Jul 9 06:44:35 UTC 2010
> Date: Fri, 9 Jul 2010 02:32:18 +0200
> From: Thomas <fwd at gothschlampen.com>
> Cc: FreeBSD Mailing list <freebsd-questions at freebsd.org>
> Subject: Re: slow down dd - how?
> On Thu, Jul 08, 2010 at 05:50:52PM +0200, Jozsi Avadkan wrote:
> > How can I slow down dd?
> you could use some creative shellscripting (probably in addition to idprio):
> dd if=/dev/zero bs=1024k | ( dd bs=1024k count=10; sleep 3 ) | dd bs=1024k of=/dev/somewhere
> This pauses for 3 seconds for every 10MB written. ...
I must be missing something.
Doesn't that "dd ... ; sleep" in the sub-shell need to be in a _loop_ of some
I would expect the dd in the sub-shell to _exit_ after the first 10mb,
whereupon the subshell would exit after the 3 second sleep, whereupon
'somebody" is going to holler about a 'broken pipe'.
More information about the freebsd-questions