1752795 Members
5849 Online
108789 Solutions
New Discussion

sar -Mu output

 
gany59
Regular Advisor

sar -Mu output

Hi folks..

I am getting the O/p for the sar -Mu 5 5 as below:
12:15:41 cpu %usr %sys %wio %idle
12:15:46 0 42 58 0 0
1 64 36 0 0
system 53 47 0 0
12:15:51 0 40 60 0 0
1 66 34 0 0
system 53 47 0 0
12:15:56 0 40 60 0 0
1 64 36 0 0
system 52 48 0 0
12:16:01 0 42 58 0 0
1 65 35 0 0
system 53 47 0 0
12:16:06 0 38 62 0 0
1 77 23 0 0
system 57 43 0 0

So in the column is time and the seconnd is CPU count, and third is % of user consumption and the fourth is % system consumption and what is the meaning for the %wio & %idle
in the above O/p.. If idle is 0%, is the CPU is in bottle neck?

Pls clear out this

Thanks in advance..
1 REPLY 1
James R. Ferguson
Acclaimed Contributor

Re: sar -Mu output

Hi:

The 'sar' output fields are for the user, the system, processes waiting I/O and everything else. Hence in your case, the processor is fully utilized (0% idle). This may be fine as long as you are getting the performance for the workload that you want.

Doing I/O doesn't involve CPU cycles and in fact, a process that sleeps or does I/O will lessen the load on a processor. A simple shell script to consume 100% of a processor is simply:

#!/usr/bin/sh
while true
do
:
done

Regards!

...JRF...