Subject: kern/7485: can't set an autoniced process' priority back to 0
To: None <gnats-bugs@gnats.netbsd.org>
From: Thilo Manske <thilo@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 04/27/1999 17:35:49
>Number: 7485
>Category: kern
>Synopsis: can't set an autoniced process' priority back to 0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 27 17:35:01 1999
>Last-Modified:
>Originator: Thilo Manske
>Organization:
>Release: 1.3.3
>Environment:
System: NetBSD Server 1.3.3 NetBSD 1.3.3 (HEHOL) #22: Fri Mar 19 04:11:34 MET 1999 thilo@Server:/usr/src/sys/arch/i386/compile/HEHOL i386
+ 1.3scheduler patch + various kernel-security patches
(19990120-accept, 19990311-umapfs, 19990317-mount)
>Description:
Ok, this is really weird (for me):
I have a process running wich has been autoniced to 4.
I tried to set its nice-value back to 0:
I can set it to any nice value !=0; if I try to
set it to 0 the process get's niced to priority 4.
Server:/ #renice 3 27425
27425: old priority 4, new priority 3
Server:/ #renice 2 27425
27425: old priority 3, new priority 2
Server:/ #renice 1 27425
27425: old priority 2, new priority 1
Server:/ #renice 0 27425
^
27425: old priority 1, new priority 0
^
Server:/ #renice -1 27425
27425: old priority 4, new priority -1
^!!
Server:/ #renice -2 27425
27425: old priority -1, new priority -2
Server:/ #renice -3 27425
27425: old priority -2, new priority -3
(I hope you got the picture...)
If this is not a bug I would like somebody to
explain me the purpose of this "feature" :-)
>How-To-Repeat:
try "renice 0 <pid>" on an autoniced process
>Fix:
>Audit-Trail:
>Unformatted: