From owner-freebsd-performance@FreeBSD.ORG Wed Apr 9 06:12:07 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 C39AC37B401 for ; Wed, 9 Apr 2003 06:12:06 -0700 (PDT) Received: from relay.kiev.sovam.com (relay.kiev.sovam.com [212.109.32.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id E205943F3F for ; Wed, 9 Apr 2003 06:12:05 -0700 (PDT) (envelope-from dimitry@al.org.ua) Received: from [212.109.32.116] (helo=dimitry.kiev.sovam.com) by relay.kiev.sovam.com with esmtp (Exim 3.36 #5) id 193FMx-000EEV-00; Wed, 09 Apr 2003 16:12:03 +0300 From: Dmitry Alyabyev To: "Craig Reyenga" Date: Wed, 9 Apr 2003 16:12:03 +0300 User-Agent: KMail/1.5 References: <000701c2fe98$f0cc4c40$0200000a@fireball> In-Reply-To: <000701c2fe98$f0cc4c40$0200000a@fireball> X-NCC-RegID: ua.svitonline MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304091612.03211.dimitry@al.org.ua> cc: freebsd-performance@freebsd.org Subject: Re: Users and setpriority() X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dimitry@al.org.ua List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 13:12:07 -0000 X-List-Received-Date: Wed, 09 Apr 2003 13:12:07 -0000 On Wednesday 09 April 2003 16:07, Craig Reyenga wrote: > First on topic post! > > Currently, setpriority() doesn't allow non- uid 0 users to use a nice value > above 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. 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. 'sudo /usr/bin/renice' will help -- Dimitry