Bug 7881

Summary: The %CPU and %MEM fields in ps -u are always 0
Product: Base System Reporter: Greg Lehey <grog>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.0-CURRENT   
Hardware: Any   
OS: Any   

Description Greg Lehey 1998-09-10 09:50:00 UTC
	In -CURRENT versions supped on 30 August and 6 September (and
	presumably in between), ps -u shows %CPU and %MEM values of
	0.0 for all processes.

	This may be a kernel problem, but top shows the values
	correctly.  For example, on a looping process:

	ps:

	USER   PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
	grog  6030  0.0  0.0 96168 60812  v0  R     7:01PM  10:54.06 /T/local/bin/netscape

	top:

	  PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
	 6030 grog     105   0 96168K 60812K RUN     11:08 89.65% 89.65% netscape

Fix: 

Not known
How-To-Repeat: 
	Run ps -aux
Comment 1 Bruce Evans freebsd_committer freebsd_triage 1998-09-10 19:06:47 UTC
State Changed
From-To: open->closed

Fixed in rev.1.12 of ps/nlist.c.