From owner-freebsd-questions Wed Mar 21 5:17:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 66FF337B73C for ; Wed, 21 Mar 2001 05:17:49 -0800 (PST) (envelope-from mwm@mired.org) Received: (qmail 95752 invoked by uid 100); 21 Mar 2001 13:17:48 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15032.43516.622282.611352@guru.mired.org> Date: Wed, 21 Mar 2001 07:17:48 -0600 To: anarcat Cc: questions@freebsd.org Subject: Re: Can't use nice to lower ports build priority In-Reply-To: <97268406@toto.iv> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG anarcat 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. 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