Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jul 2010 02:32:18 +0200
From:      Thomas <fwd@gothschlampen.com>
To:        Jozsi Avadkan <jozsi.avadkan@gmail.com>
Cc:        FreeBSD Mailing list <freebsd-questions@freebsd.org>
Subject:   Re: slow down dd - how?
Message-ID:  <20100709003218.GA10163@gothschlampen.com>
In-Reply-To: <1278604252.12047.13.camel@localhost>
References:  <1278604252.12047.13.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 08, 2010 at 05:50:52PM +0200, Jozsi Avadkan wrote:

Hi,

> How can I slow down dd?
> 
> I don't want to slow down the pc, when generating a big file [~40
> GByte].
> 
> Does ionice work properly?
> 
> Thank you for any help! :\

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. Try some variations of
bs, count and sleep, until you find an acceptable compromise between speed and
imposed load.

Regards
Thomas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100709003218.GA10163>