Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Oct 2004 23:07:12 GMT
From:      "J. Porter Clark" <jpc@drum.msfc.nasa.gov>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/73328: top shows NICE as -111 on processes started by idprio
Message-ID:  <200410302307.i9UN7Cg0045288@www.freebsd.org>
Resent-Message-ID: <200410302310.i9UNASeY004685@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         73328
>Category:       i386
>Synopsis:       top shows NICE as -111 on processes started by idprio
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 30 23:10:28 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     J. Porter Clark
>Release:        5.3-STABLE
>Organization:
NASA MSFC
>Environment:
FreeBSD hammer.msfc.nasa.gov 5.3-STABLE FreeBSD 5.3-STABLE #0: Thu Oct 28 08:40:49 CDT 2004     jpc@hammer.msfc.nasa.gov:/usr/obj/usr/src/sys/HAMMER  i386     
>Description:
      The "top" program shows a NICE value of -111 for programs started by
idprio 31.  On 4.X, the "correct" value of 52 is shown.
>How-To-Repeat:
      As root, run "idprio 31 sleep 500 &".
Then run "top -Uroot".  The sleep process is listed as having a NICE value
of -111.  Other values besides 31 produce the same result.
>Fix:
      My guess is that it's probably in /usr/src/usr.bin/top/machine.c about line 747 or so, but I haven't had time to dig into it.
>Release-Note:
>Audit-Trail:
>Unformatted:


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410302307.i9UN7Cg0045288>