Subject: Re: negative values using ps -aux
To: Reinhold M. Roppert <netbsd-users@rmroppert.de>
From: Perry E. Metzger <perry@piermont.com>
List: netbsd-help
Date: 11/14/2005 11:56:54
"Reinhold M. Roppert" <netbsd-users@rmroppert.de> writes:
> Hello,
>
> i get negative Values using ps -aux
>
> nbsd3:> ps -aux
> USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
> root 0 0.0 -204.5 0 134912 ?? DKs 10:13PM 0:00.00 [swapper]
> root 1 0.0 -1.1 68 736 ?? Is 10:13PM 0:00.14 init
> root 2 0.0 -204.5 0 134912 ?? DK 10:13PM 0:00.00 [cryptoret]
> root 3 0.0 -204.5 0 134912 ?? DK 10:13PM 0:00.00 [usb0]
I remember that being a bug that was fixed -- in -current I don't get
negatives for in-kernel procs.
OTOH, I do still get a %mem and RSS value for them, which may not be
reasonable. Probably kernel procs should just give you a 0 for those
things.
Perry