Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
$ cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
I have a issue with sar command. It is showing different idle CPU utilization, than showing in other commands like top, iostat, vmstat.
SAR OUTPUT where CPU idle state is 0 %
Code:
08:34:39 AM CPU %user %nice %system %iowait %idle
08:34:40 AM all 0.00 0.00 0.00 0.00 0.00
08:34:41 AM all 0.00 0.00 0.00 100.00 0.00
08:34:42 AM all 0.00 0.00 100.00 0.00 0.00
08:34:43 AM all 0.00 0.00 0.00 100.00 0.00
08:34:44 AM all 0.00 0.00 0.00 100.00 0.00
08:34:45 AM all 0.00 0.00 0.00 100.00 0.00
08:34:46 AM all 14.29 0.00 0.00 85.71 0.00
08:34:47 AM all 0.00 0.00 0.00 100.00 0.00
08:34:48 AM all 0.00 0.00 0.00 100.00 0.00
08:34:49 AM all 0.00 0.00 33.33 66.67 0.00
Average: all 4.55 0.00 9.09 86.36 0.00
where as in other commands, it is showing CPU is above 84% idle.
Code:
$ vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 101436 45524 137288 1562948 0 0 0 2 0 0 14 1 85 0
$
$ iostat | head -4 | tail -2
avg-cpu: %user %nice %sys %iowait %idle
13.66 0.00 1.02 0.45 84.87
$
$ top -bn1 | grep -i cpu
Cpu(s): 13.7% us, 1.0% sy, 0.0% ni, 84.9% id, 0.4% wa, 0.0% hi, 0.0% si
Am I missing out something. There is nothing in /var/log/messages also, other than session opening/closing messages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.