1753705 Members
4831 Online
108799 Solutions
New Discussion юеВ

sar vs top

 
SOLVED
Go to solution
Paul_481
Respected Contributor

sar vs top

Hello Guys,

Just want to ask, which one is accurate.
sar or top.

I run both at the same time to find the cpu idle but theres a large difference in the result.

thanks,
paul
4 REPLIES 4
Slawomir Gora
Honored Contributor

Re: sar vs top

Hi,


in my opinion - sar

Paul_481
Respected Contributor

Re: sar vs top

can you explain to me how?

thanks,

paul
Sridhar Bhaskarla
Honored Contributor
Solution

Re: sar vs top

Hi Paul,

sar shows the CPU that is waiting for IO to complete but otherwise Idle as a seperate column where as 'top' doesn't. Means, sar's idle CPU doesn't include %wio. So, if you compare the 'idle+%wio' in sar and 'idle' in top, you may find them near.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Paul_481
Respected Contributor

Re: sar vs top

ok thanks