From owner-freebsd-stable@FreeBSD.ORG Tue Feb 9 11:18:39 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB4DD1065676 for ; Tue, 9 Feb 2010 11:18:39 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 7A5538FC08 for ; Tue, 9 Feb 2010 11:18:37 +0000 (UTC) Received: from vhoffman.lon.namesco.net (187.70-246-213.ippool.namesco.net [213.246.70.187]) (authenticated bits=0) by unsane.co.uk (8.14.3/8.14.3) with ESMTP id o19BIYqr091685 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 9 Feb 2010 11:18:35 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4B71448A.1060102@unsane.co.uk> Date: Tue, 09 Feb 2010 11:18:34 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <4B685EBA.4020501@minibofh.org> <4B695A1A.1000505@incunabulum.net> <4B696360.3070209@minibofh.org> <4B70E66F.2040203@thebeastie.org> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: ionice in FreeBSD? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2010 11:18:39 -0000 On 09/02/2010 05:44, jhell wrote: > > On Mon, 8 Feb 2010 23:37, mv@ wrote: >> On 3/02/2010 10:52 PM, Jordi Espasa Clofent wrote: >>> >>> Some shell-scripts based on dd or rsync, for example. Even a daily >>> antivirus (ClamAV) scanner means an extensive I/O. >>> >> Programs like Rsync do provide --bwlimit= which work great in slowing >> it down to a desired level. >> >> I can't help but think every program that can use too much IO should >> have it's own IO/speed switch of some sort. >> I can only hope that in general nix evolution that all programs that >> can over use IO will offer a switch to slow it down like Rsync does. >> >> Using a while ionice can be a useful feature it can also be said that >> there are too many instances where it's being used as a hack to deal >> with a program that isn't offering all the functionality that it should. >> >> Cheers, >> Mike >> > > In this thread with due respect to the OP the following might be > considered a fruitless hack but it works!. > > Piping a processes output to dd(1) if you have a choice is a pretty > fair temporary solution if a program does not offer that capability. > > For instance, I don't know if you are familiar with dump(8) at all, > but I use a -P or pipe from that process to dd(8) to slow down the > traffic that it tries to write over the network for backup purposes > and then also give dump(8) a different nice level so it plays along. > > So even if you can cat your output and then read it in from fd(4) > using dd(8) you still have a chance at slowing things down a little or > writing at smaller increments that wont impact your environment as hard. > Something like Port: throttle-1.2 Path: /usr/ports/sysutils/throttle Info: A pipe bandwidth throttling utility Maint: ports@FreeBSD.org B-deps: R-deps: WWW: http://klicman.org/throttle/ Might work too. Vince Vince > ;) >