From owner-freebsd-questions@FreeBSD.ORG Fri Jul 9 00:32:44 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 62244106564A for ; Fri, 9 Jul 2010 00:32:44 +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 298A98FC0C for ; Fri, 9 Jul 2010 00:32:43 +0000 (UTC) Received: by vs.gothschlampen.com (Postfix, from userid 667) id 8D6961D2725; Fri, 9 Jul 2010 02:32:18 +0200 (CEST) Date: Fri, 9 Jul 2010 02:32:18 +0200 From: Thomas To: Jozsi Avadkan Message-ID: <20100709003218.GA10163@gothschlampen.com> References: <1278604252.12047.13.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1278604252.12047.13.camel@localhost> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD Mailing list 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 00:32:44 -0000 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