Bug 27433

Summary: ps binary does not do what the man page says. ps output columns are wrecked.
Product: Base System Reporter: kstailey <kstailey>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
ps.patch none

Description kstailey 2001-05-18 18:50:01 UTC
ps(1) man page says:
     re         core residency time (in seconds; 127 = infinity)

but the output looks like this instead:
  PID STAT      TIME  SL  RE PAGEIN   VSZ  RSS   LIM TSIZ %CPU %MEM COMMAND
62934 S      0:00.37  16 1723      1  2912 2256     - 1036  0.0  0.9 /home/httpd
92821 S      0:00.59  16 3184      0  2900 2248     - 1036  0.0  0.9 /home/httpd
96372 S      0:00.47  16 3123      1  2900 2244     - 1036  0.0  0.9 /home/httpd

by "127 = infinity" they mean that values higher than 127 are represented as 127

3123 > 127

On NetBSD where someone fixed it the columns are not pushed over too far:

  PID  STAT      TIME  SL  RE PAGEIN   VSZ   RSS   LIM TSIZ %CPU %MEM COMMAND
28398 S       5:07.20   1 127    942 23328  8336 57800 9388  0.1 12.8 /usr/loca
19246 Is      0:04.11 126 127   3900 16828    52 57800  136  0.0  0.1 mount_mfs
23242 Ss    826:29.45   0 127  33405 12312 17504 57800 2604  0.6 26.9 /usr/X11R

How-To-Repeat: Run ps with options that produce the RE and/or SL columns.  Try "ps -v"
Comment 1 Tim Robbins freebsd_committer freebsd_triage 2003-04-12 11:24:30 UTC
State Changed
From-To: open->closed

Same as bin/46232.