Bug 7881 - The %CPU and %MEM fields in ps -u are always 0
Summary: The %CPU and %MEM fields in ps -u are always 0
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 3.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-09-10 09:50 UTC by Greg Lehey
Modified: 1998-09-10 19:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.