Bug 51464

Summary: sar does give a wrong % for CPU time (1024%)
Product: [Retired] Red Hat Linux Reporter: Need Real Name <robert.pouliot>
Component: sysstatAssignee: Preston Brown <pbrown>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: alpha   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-08-10 17:34: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:
Embargoed:

Description Need Real Name 2001-08-10 17:34:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12 i686)

Description of problem:
sar does give wrong results on Alpha, it seem to assume that
HZ is 100 for all architectures (tru for Intel, but Alpha is 1024). I guess
sar uses the C function times().

How reproducible:
Always

Steps to Reproduce:
1. sar -u 1	

Actual Results:  dilbert:~> sar -u 1
Linux 2.4.3-12smp (dilbert)     08/10/2001
 
01:39:13 PM       CPU     %user     %nice   %system     %idle
01:39:14 PM       all      2.00      0.00     18.00    1004.00
Average:          all      2.00      0.00     18.00    1004.00

Expected Results:  Total time being at a total of 100% (maybe 200% for dual
processor, but not 1024%)...


Additional info:

Comment 1 Preston Brown 2001-08-13 19:50:08 UTC
fixed in rawhide, and the next release.