1825024 Members
3091 Online
109678 Solutions
New Discussion юеВ

Re: Can sar be trusted?

 
Martin Robinson
Frequent Advisor

Can sar be trusted?

I have an rp7410, 2 processor, HPUX11.11i. We run MeasureWare and Glance to collect statistics. A third party asked for the output of sar -v, specifically the %wio column, in an attempt to diagnose throughput problems. It showed about 80% for the period of measurement. However TOP showed 80% idle for the same period, and Measureware showed the GBL_DISK_SUBSYSTEM_QUEUE as about 1. sar -d shows disk queues as consistently below 0.50

So, is there a MeasureWare stat that is comparable to sar -u %wio?

Why is sar -u reporting 80% %wio when TOP shows it as 80% idle?

Puzzled.
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Can sar be trusted?

sar is the reliable, old horse that runs across various unix platforms.

It is as far as I know extremely reliable. Check for patches, install them and try again.

Every time, my sar data collection script indicated bottlenecks, they were real, recurring and had to be dealt with.

Attaching the script as a reference point.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dietmar Konermann
Honored Contributor

Re: Can sar be trusted?

Some short notice on 'Why is sar -u reporting 80% %wio when TOP shows it as 80% idle? '

Why not? :)

%wio
idle with some process waiting for I/O (only block I/O, raw I/O, or VM pageins/swapins indicated);

Essentially sar distinguishes between idle and idle while waiting for IO. From a CPU perspective (which is reported by top) both states are idle.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Paula J Frazer-Campbell
Honored Contributor

Re: Can sar be trusted?

Hi

Top output is based on an average whereas sar is a moment by moment base.

Paula
If you can spell SysAdmin then you is one - anon
Wodisch
Honored Contributor

Re: Can sar be trusted?

Hi,

*all* the performance measurement tools have blind spots, that's just one reason why you usually consult multiple of those...

FWIW,
Wodisch
Decio Miname
Frequent Advisor

Re: Can sar be trusted?


Dietmar is right, let's separate things.

There are perftuning-usable commands that consider WIO separately (like some flags of sar, like the summarized -u), and other don't (like top).

For the tools that don't report WIO explicitly, IDLE must be considered as a sum of "really IDLE" (really nothing to do) and WIO (nothing to do because I/O have not responded yet).

D.

Sunil Sharma_1
Honored Contributor

Re: Can sar be trusted?

Hi,
sar is the best and only reliable utility to find out server resources utilization infact some thired paty tools are using the same sar o/p to generat reports and all.

The difference between top and sar is becoz when sar show %wio means it's waiting for data from disk (generally) but in this case CPU is Idle which reports by top. so top and sar use different way to show the things.
You can run sar -q and check for the runq-sz value it says about Average length of the run queue(s) of processes this will show exactely how many processes are in the queue.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Khalid A. Al-Tayaran
Valued Contributor

Re: Can sar be trusted?

Hi,

sar is very fine. Also add to that iostat nad vmstat.