From owner-freebsd-questions@FreeBSD.ORG Fri Jul 9 18:09:53 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 162F61065670 for ; Fri, 9 Jul 2010 18:09:53 +0000 (UTC) (envelope-from fwd@gothschlampen.com) Received: from vs.gothschlampen.com (vs.gothschlampen.com [85.93.11.85]) by mx1.freebsd.org (Postfix) with ESMTP id D16FA8FC16 for ; Fri, 9 Jul 2010 18:09:52 +0000 (UTC) Received: by vs.gothschlampen.com (Postfix, from userid 667) id 0F50D1D258E; Fri, 9 Jul 2010 20:09:27 +0200 (CEST) Date: Fri, 9 Jul 2010 20:09:27 +0200 From: Thomas To: Robert Bonomi Message-ID: <20100709180927.GA20367@gothschlampen.com> References: <201007090644.o696i0QK028217@mail.r-bonomi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201007090644.o696i0QK028217@mail.r-bonomi.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: slow down dd - how? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2010 18:09:53 -0000 On Fri, Jul 09, 2010 at 01:44:00AM -0500, Robert Bonomi wrote: Hi, > > > 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 > sort? You're absolutely right. I probably should get more sleep. Of course it needs to be in a loop, something like "( while dd bs=1024k count=10; do sleep 3; done )" should do the trick. Sorry for the confusion. Regards Thomas