Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 5092

Summary: top gives incorrect %CPU information on SMP machines
Product: [Retired] Red Hat Raw Hide Reporter: Jeremy Katz <katzj>
Component: procpsAssignee: Michael K. Johnson <johnsonm>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-10-04 21:38:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jeremy Katz 1999-09-12 18:59:10 UTC
With procps-2.0.3-1 as included in Lorax 6.0.55, top's
behavior has changed such that %CPU gives the share of CPU
time of one processor since the last screen updated.

From man top(1)
%CPU The task's share of the CPU time since the last
screen update, expressed as a percentage of total CPU time.

I believe that this is caused by the change in determination
of HZ in proc/sysinfo.c

Comment 1 Jeff Johnson 1999-09-12 22:42:59 UTC
This should be fixed in the Raw Hide procps-2.0.3-1. Please reopen
this bug if not.

Comment 2 Jeff Johnson 1999-09-12 22:44:59 UTC
Whoops, this is still a problem in procps-2.0.3-1.

Comment 3 Michael K. Johnson 1999-09-20 00:44:59 UTC
The bug is in the man page.  People report this as a bug whichever
way it works...

Comment 4 Jeremy Katz 1999-10-03 02:20:59 UTC
The man page describes the behavior exhibited by top in
procps-2.0.4-2.  As far as I'm concerned, this bug can be closed.

Comment 5 Michael K. Johnson 1999-10-04 21:38:59 UTC