From owner-freebsd-performance@FreeBSD.ORG Wed Apr 9 06:20:38 2003 Return-Path: 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 8AA2937B401 for ; Wed, 9 Apr 2003 06:20:38 -0700 (PDT) Received: from perrin.int.nxad.com (internal.ext.nxad.com [69.1.70.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A65443FB1 for ; Wed, 9 Apr 2003 06:20:38 -0700 (PDT) (envelope-from sean@perrin.int.nxad.com) Received: by perrin.int.nxad.com (Postfix, from userid 1001) id D806D21062; Wed, 9 Apr 2003 06:20:23 -0700 (PDT) Date: Wed, 9 Apr 2003 06:20:23 -0700 From: Sean Chittenden To: Craig Reyenga Message-ID: <20030409132023.GQ79923@perrin.int.nxad.com> References: <000701c2fe98$f0cc4c40$0200000a@fireball> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000701c2fe98$f0cc4c40$0200000a@fireball> User-Agent: Mutt/1.4i X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 3849 3760 1AFE 7B17 11A0 83A6 DD99 E31F BC84 B341 X-Web-Homepage: http://sean.chittenden.org/ cc: freebsd-performance@freebsd.org Subject: Re: Users and setpriority() X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 13:20:38 -0000 X-List-Received-Date: Wed, 09 Apr 2003 13:20:38 -0000 > First on topic post! Kind of... :) This list is more geared toward server performance, but that's not to say that desktop computing isn't performance sensitive or off topic... > Currently, setpriority() doesn't allow non- uid 0 users to use a > nice value *below* 0. If you set "priority" in /etc/login.conf to a > higher value, all you are doing is making every stinking process on > the system run at that value initially, which is a disaster. Unless I'm misunderstanding what you mean by disaster, this isn't a problem unless a system's CPU resources are in contention. If it isn't, then the scheduler won't need to rely on the priority value of a process to make scheduling decisions on what processes get how much of the CPUs time. > My question is: Is there, or will there be a facility to allow > certain non-root users to set higher/raise nice values? This would > be a dream for desktop machines where there is essentially one user, > because that user could have a non-zero uid, and control of process > scheduling. There isn't a mechanism other than sudo renice (as already suggested). -sc -- Sean Chittenden