From owner-freebsd-performance@FreeBSD.ORG Sat Dec 3 12:16:54 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 568D216A41F for ; Sat, 3 Dec 2005 12:16:54 +0000 (GMT) (envelope-from Shane@007Marketing.com) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7079E43D60 for ; Sat, 3 Dec 2005 12:16:53 +0000 (GMT) (envelope-from Shane@007Marketing.com) Received: from [192.168.8.50] (ppp19-170.static.internode.on.net [150.101.19.170]) by smtp3.adl2.internode.on.net (8.12.9/8.12.6) with ESMTP id jB3CGogY089910 for ; Sat, 3 Dec 2005 22:46:52 +1030 (CST) (envelope-from Shane@007Marketing.com) User-Agent: Microsoft-Entourage/10.1.4.030702.0 Date: Sat, 03 Dec 2005 22:46:47 +1030 From: Shane Ambler To: FreeBSD Mailing Lists Message-ID: In-Reply-To: <20051202164427.53510.qmail@web30301.mail.mud.yahoo.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit 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: Sat, 03 Dec 2005 12:16:54 -0000 On 3/12/2005 3:14, "Arne Woerner" wrote: > --- 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%)? Well if your machine isn't smp enabled (specifically pre-HTT) then one process can slow the server down to a point where your web/databse server can't get processor time to give a response - effectively making it non existent for the duration. Some tasks such as getting awstat to update and create stats pages are not a priority and can take as long as they need. (if you can't guess this is a problem I am just starting to look into) >> 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 > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org" > -- Shane Ambler Sales Department 007Marketing.com Shane@007Marketing.com