Date: Wed, 21 Mar 2001 07:17:48 -0600 From: Mike Meyer <mwm@mired.org> To: anarcat <anarcat@tao.ca> Cc: questions@freebsd.org Subject: Re: Can't use nice to lower ports build priority Message-ID: <15032.43516.622282.611352@guru.mired.org> In-Reply-To: <97268406@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
anarcat <anarcat@tao.ca> types: > --RnlQjJ0d97Da+TV1 > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > Hi. > > I am witnessing weird nice behavior here. Note that I'm doing this as > root. > > Say I start sh with nice: > > shall# nice sh > > it works fine: > > UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND > 0 11250 10712 0 10 4 624 248 wait SN p2 0:00.01 sh > > Actually, I wonder why nice is not 10, as nice(1) says.. > > But say I want to nice it to even lower priority: > > shall# nice -20 sh > > UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND > 0 11252 10712 0 10 -20 624 260 wait S< p2 0:00.01 sh > > Odd. Considering nice(1) says: > > "Negative numbers are expressed as --number." > > What's worse is that: > > shall# nice --20 sh > nice: Badly formed number. > shall# > > I don't get it.=20 You're getting the shells builtin nice, not the command documented by nice(1). The behavior you describe is documented for csh, which is also root's default shell. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15032.43516.622282.611352>