From owner-freebsd-performance@FreeBSD.ORG Fri Dec 2 16:44:29 2005 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3981B16A41F for ; Fri, 2 Dec 2005 16:44:29 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: from web30301.mail.mud.yahoo.com (web30301.mail.mud.yahoo.com [68.142.200.94]) by mx1.FreeBSD.org (Postfix) with SMTP id 6D67443D64 for ; Fri, 2 Dec 2005 16:44:28 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 53512 invoked by uid 60001); 2 Dec 2005 16:44:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=GA6KgPH6G7ahRIiFGP2ZRdtsNw2YS/qfRcdNPe5VzDntfgMWQ+DGvDFToSDE4OMd948h5oxGZ3aHPIrTqfi790xkY08DsMH+K5deOhWp2fytJeVzIntDwnv6G2HMvbmbCj1AWLzwjEnYmOjZIeumq2YE+Zo4dC8dqD4p4Wjcpw4= ; Message-ID: <20051202164427.53510.qmail@web30301.mail.mud.yahoo.com> Received: from [213.54.72.43] by web30301.mail.mud.yahoo.com via HTTP; Fri, 02 Dec 2005 08:44:27 PST Date: Fri, 2 Dec 2005 08:44:27 -0800 (PST) From: Arne Woerner To: Nash Nipples , freebsd-performance@freebsd.org In-Reply-To: <20051202155333.52155.qmail@web36301.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: Constraining CPU usage X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 16:44:29 -0000 --- Nash Nipples wrote: > It seems i cannot get a clear answer wherther it > is possible to limit a CPU usage by a user process > and should i do that at all. > Why should somebody want to keep CPU usage of a process below a certain value (e. g. 20%)? > As you can see in the figure above, renicing wont work. > Why? Obviously there is no or nearly no other process, that wants to run, so your "tar" process runs as fast as possible in order to finish as soon as possible... Reniceing to a positive nice-value means that this process gets the processor less often than other processes, who want to run... > Any hints? What to read? Thank you. > You could try idprio(1) against your tar process. That makes sure, that your tar process waits, when other processes (non idprio processes) want to run... -Arne __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs