bin/74227: renice odd behavior

Robert Watson rwatson at
Mon Nov 22 11:30:47 GMT 2004

The following reply was made to PR bin/74227; it has been noted by GNATS.

From: Robert Watson <rwatson at>
To: FreeBSD-gnats-submit at
Subject: Re: bin/74227: renice odd behavior
Date: Mon, 22 Nov 2004 11:26:01 +0000 (GMT)

 robert at      Principal Research Scientist, McAfee Research
 On Mon, 22 Nov 2004, Jorge Mario G. Mazo wrote:
 > >Description:
 > 	When you renice a proces to 20 and the you renice it to -20
 > 	it wont jump from 20 to -20. it'll jump from 20 to 0
 > 	so you have to renice it again to actually get the -20 value
 > 	*Same thing happens backwards (-20 to 20)
 Isn't this the documented behavior of -n in renice(8):
      -n      Instead of changing the specified processes to the given prior-
              ity, interpret the following argument as an increment to be
              applied to the current priority of each process.
 Does renice work as desired if you omit the "-n" from the command line?
 Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
 robert at      Principal Research Scientist, McAfee Research

More information about the freebsd-bugs mailing list