����Linux�Ż�
Linux����

ͨ������SAR��ʾCPU����IDELʼ��Ϊ�㣬ϵͳ��������

����ʱ��:2009-06-04 10:42:05��Դ:��������:qiaoyongdv
2008��10��19������5��࣬�����м��ϵͳ��������ʾcpu��idle��cpu������Դ��Ϊ0��������ͨ���ֽ��Ǽ�س���ʹ�õ�sar�����������ʾ��ʹ���������������޸����������ϲ�ѯ���ϣ�Ӧ����Ŀǰʹ�õİ汾sar����ƴ������⵼����ʾ�����⣬��Ҫ����sysstat�������������������Ҫ���Ǿ����ṩ��������������س���Ͳ���ʹ�á�
SYSSTAT FAQ
2.21. The sar command displays some weird CPU values...
E.g.: 10:50:01 AM CPU %user %nice %system %iowait %idle
11:00:01 AM all 90.90 0.00 5.17 3.93 0.00
11:00:01 AM 0 39.40 0.00 2.37 2.07 56.17
11:00:01 AM 1 29.71 0.00 1.73 1.17 67.39
11:00:01 AM 2 42.69 0.00 2.34 1.11 53.85
11:00:01 AM 3 26.24 0.00 1.41 1.61 70.74
...

Sysstat may have met an overflow condition while reading CPU usage from your /proc/stat file. This condition is all the more likely to happen as your machine uptime is high and/or there are many processors. Sysstat up to version 5.0.6 uses 32-bit integer variables to store CPU usage. Then, beginning with version 5.1.1, sysstat has shifted to 64-bit variables, which has fixed the problem. So try to upgrade your version of sysstat to the latest stable release and check that the problem has gone.
��������

���� 0 ������