Subject: problem with ps
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Drew Hess <dhess@CS.Stanford.EDU>
List: netbsd-bugs
Date: 02/16/1994 07:51:02
ps -aux give bogus CPU usage numbers:

USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
dhess      205  0.0  1.0   272  232 p2  R+    7:47AM    0:00.07 ps -aux
root        94  0.0  1.5   108  356 ??  Is    7:22AM    0:00.12 inetd
root        89  0.0  1.1    64  264 ??  Is    7:22AM    0:00.03 lpd
dhess      133  0.0  2.9   460  696 p1  Is+   7:22AM    0:00.95 -csh (tcsh)
dhess      132  0.0  2.8   452  672 p0  Is+   7:22AM    0:00.21 -csh (tcsh)
dhess      131  0.0  2.5   240  612 vg  S     7:22AM    0:00.31 /usr/local/X11/
dhess      130  0.0  2.8   180  688 vg  S     7:22AM    0:00.65 fvwm
root       129  0.0  5.0   384 1232 vg  S     7:22AM    0:04.25 xterm -fn fixed
root       123  0.0  4.5   296 1108 vg  S     7:22AM    0:00.39 xterm -C -name 
root        85  0.0  0.5   152  116 ??  Ss    7:22AM    0:00.01 routed -q
dhess      121  0.0  2.0    56  484 vg  I+    7:22AM    0:00.20 xinit /home/dhe
dhess      115  0.0  0.6   132  132 vg  I+    7:22AM    0:00.09 /bin/sh /usr/X3
dhess      107  0.0  2.8   480  692 vg  Is    7:22AM    0:00.35 -tcsh (tcsh)
root        69  0.0  1.1   368  272 ??  Ss    7:22AM    0:00.00 timed
root        50  0.0  1.0    48  232 ??  Is    7:22AM    0:00.03 portmap
dhess      127  0.0  0.0     0   20 vg  Z    -          0:00.00 (xset)
root        81  0.0  1.5   156  356 ??  Is    7:22AM    0:00.04 cron
root        79  0.0  0.7    12  156 ??  Ss    7:22AM    0:00.06 update
root        66  0.0  1.3    76  316 ??  Ss    7:22AM    0:00.08 syslogd
root         2  0.0  0.1     0   12 ??  DL    7:21AM    0:00.00 (pagedaemon)
dhess      128  0.0  0.0     0   20 vg  Z    -          0:00.00 (xsetroot)
root         1  0.0  0.7   212  176 ??  Ss    7:21AM    0:00.04 init --
root         0  0.0  0.0     0    0 ??  DLs   7:21AM    0:00.03 (swapper)
dhess      198 -2.8  2.8   452  684 p2  Ss    7:47AM    0:00.22 -csh (tcsh)
root       197 -7.3  4.9   384 1208 vg  S     7:47AM    0:00.43 xterm -fn fixed
root       122 -69.6  6.5  1576 1580 ??  R     7:22AM    0:19.41 X :0


Note the negative %CPU values.

This is with a Feb 16 -current system.

-dwh-
dhess@cs.stanford.edu

------------------------------------------------------------------------------