Re: vmstat and loadavg disagree about system load

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi John,
The first two number of vmstat is running process and blocked process, the sum of the two number should equal to system load. But it's inconsistent in this case.

Regards,
Mingfei

-----Original Message-----
From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of John R Pierce
Sent: 2014年10月9日 11:57
To: centos@xxxxxxxxxx
Subject: Re:  vmstat and loadavg disagree about system load

On 10/8/2014 8:48 PM, Mingfei Hua wrote:
> 1  4 499492 150392   4496 4763380    0    0   192   552 1227 1094  2  0 75 24  0
> ...
> 1  2 499520 135936   4428 4770852    0    0 27144   120 2428 2449  9  1 85  6  0
> 2  1 499520 148336   4428 4761668    0    0 19072   192 2281 2420  8  1 83  8  0
> 0  2 499520 156408   4432 4749652    0    0 12416   436 1303 1235  3  0 86 11  0
> ...
> [root@idm-amst-db-12 ~]# uptime
> 01:47:47 up 26 days,  4:21,  1 user,  load average: 26.85, 22.12, 19.38
> [root@idm-amst-db-12 ~]# uptime
> 01:47:58 up 26 days,  4:21,  1 user,  load average: 24.38, 21.74, 19.29
> [root@idm-amst-db-12 ~]# cat /proc/loadavg
> 25.40 22.05 19.45 1/555 13911
>

two completely different sorts of numbers.    vmstat is printing the % 
of CPU usage by user, sys, and idle.    load average is the average 
number of 'ready to run' processes in the last 1, 5, and 15 minutes.


-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos





[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux