Subject: RE: ps broken in 1.4_BETA ?
To: 'port-i386@netbsd.org ' <port-i386@netbsd.org>
From: Tony Hernandez <Tony.Hernandez@intellon.com>
List: port-i386
Date: 05/01/1999 12:21:30
Ive been experiencing the same thing.
heres a # ps -aux 
 
(SuperU)> ps -aux
USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
root       716  5.7 16.2  4612 10536 ??  R     7:35PM    0:41.11
/usr/X11R6/bin/Xwrapper :0 (XF86_S3V)
root         1  0.0  0.3   312  184 ??  Is    5:32PM    0:00.02 init 
root         2  0.0 -16.5     0 -10728 ??  DL    5:32PM    0:00.00
(pagedaemon)
root         3  0.0 -16.5     0 -10728 ??  DL    5:32PM    0:00.10 (reaper)
root       123  0.0  0.7   100  440 ??  Ss    5:32PM    0:00.16 syslogd 
root       127  0.0  0.6    52  404 ??  Is    5:32PM    0:00.02 portmap -l 
root       154  0.0  0.5    16  304 ??  Ss    5:32PM    0:00.83 update 30 
root       156  0.0  0.8   288  532 ??  Ss    5:32PM    0:00.22 cron 
root       159  0.0  0.8    88  520 ??  Is    5:32PM    0:00.02 inetd -l 
root       174  0.0  0.7    52  444 ??  S     5:32PM    0:00.07
/usr/libexec/getty Pc ttyE1 
root       175  0.0  0.7    52  448 ??  S     5:32PM    0:00.05
/usr/libexec/getty Pc ttyE2 
root       176  0.0  0.7    52  448 ??  S     5:32PM    0:00.05
/usr/libexec/getty Pc ttyE3 
root       241  0.0  1.7   804 1100 E0  Is    5:40PM    0:00.38 -bash 
root       710  0.0  0.3   420  212 E0  I+    7:35PM    0:00.01 /bin/sh
/usr/X11R6/bin/startx 
root       715  0.0  1.5    60  960 E0  I+    7:35PM    0:00.03 xinit
/root/.xinitrc -- 
root       719  0.0  2.1   356 1336 E0  S     7:35PM    0:00.70 fvwm2 
root       726  0.0  2.7   416 1764 E0  S     7:36PM    0:00.40 xterm 
root       727  0.0  1.7   788 1104 p0  Ss    7:36PM    0:00.13 bash 
root       731  0.0  1.5   112  992 E0  S     7:36PM    0:00.11
/usr/X11R6/lib/X11/fvwm2/FvwmPager 11 4 /usr/X11R6/lib/X11/fvwm2
root       736  0.0  1.3    64  848 E0  I     7:37PM    0:00.02
/usr/X11R6/lib/X11/fvwm2/FvwmBacker 13 4 /usr/X11R6/lib/X11/fvwm
root       737  0.0  1.3    64  848 E0  I     7:37PM    0:00.02
/usr/X11R6/lib/X11/fvwm2/FvwmBacker 15 4 /usr/X11R6/lib/X11/fvwm
root         0  0.0 -16.5     0 -10728 ??  DLs   5:32PM    0:00.03 (swapper)
root      2067  0.0  0.3   352  168 p0  R+    5:15AM    0:00.01 ps -aux 
(SuperU)> 

----------
From: port-i386-owner@netbsd.org
To: port-i386@netbsd.org
Sent: 5/1/99 12:33:17 AM
Subject: ps broken in 1.4_BETA ?

Here's what I see on my 486 system when I do ps -aux

$ ps aux
USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
root       194  1.0  4.1   828  648 p0  S     4:20PM    0:17.71 bash 
root         1  0.0  0.0   312    4 ??  IWs   4:04PM    0:00.49 init 
root         2  0.0 -551.3     0 -88216 ??  DL    4:04PM    0:04.39
(pagedaemon)
root         3  0.0 -551.3     0 -88216 ??  DL    4:04PM    0:20.01 (reaper)
root       123  0.0  1.9    96  296 ??  Ss    4:04PM    0:01.90 syslogd 
root       127  0.0  0.0    52    4 ??  IWs   4:04PM    0:00.66 portmap -l 
root       154  0.0  0.7    16  104 ??  Is    4:04PM    0:14.11 update 30 
root       156  0.0  1.8   288  276 ??  Is    4:04PM    0:01.65 cron 
root       159  0.0  0.0    88    4 ??  IWs   4:04PM    0:00.51 inetd -l 
root       171  0.0  0.0    48    4 E0  IWs+  4:04PM    0:00.15
/usr/libexec/ge
root       172  0.0  0.9    52  132 ??  I     4:04PM    0:00.57
/usr/libexec/ge
root       173  0.0  0.9    52  132 ??  I     4:04PM    0:00.62
/usr/libexec/ge
root       174  0.0  0.9    52  132 ??  I     4:04PM    0:00.70
/usr/libexec/ge
root       177  0.4  1.3   144  204 ??  S     4:06PM    0:21.19 telnetd 
mac        178  0.0  0.0   788    4 p0  IWs   4:06PM    0:01.21 -bash 
root       190  0.0  0.0   400    4 p0  IW    4:20PM    0:00.57 -csh 
root         0  0.0 -551.3     0 -88216 ??  DLs   4:04PM    0:00.37
(swapper)
root     25941  0.0  1.1   352  168 p0  R+    9:22PM    0:00.11 ps -aux 


The %MEM, VSZ, RSS etc. columns look wrong for pagedaemon, reaper, and
swapper.

(As a general rule, perhaps "unsigned" types should be used for quantities
 that can never be negative?)

-Mike