<div>Hi,</div>
<div> </div>
<div>My boss wants the cpu-utilization graph to reflect the statistics on a per cpu basis.</div>
<div>Investigating, I see that sar can do this, while reporting similar data to vmstat (i.e. User, System Idle, average etc...) with</div>
<div>the addition of a cpu number. Output:</div>
<div>
<p>stlqrma:root:/> sar -P ALL 1 2</p>
<p>AIX stlqrma 3 5 00CB5A2F4C00 12/05/05</p>
<p>System configuration: lcpu=16</p>
<p>15:31:05 cpu %usr %sys %wio %idle physc<br>15:31:06 0 35 5 0 60 0.75<br> 1 0 0 0 100 0.25<br> 2 36 5 0 59 0.75
<br> 3 0 0 0 100 0.25<br><snip><br>15:31:07 0 36 7 0 57 0.77<br> 1 0 0 0 100 0.24<br> 2 41 5 0 55
0.77<br> 3 0 0 0 100 0.23<br><snip><br>Average 0 36 6 0 59 0.76<br> 1 0 0 0 100 0.24<br> 2 39 5 0 57
0.76<br> 3 0 0 0 100 0.24<br><snip></p>
<p>What is the easiest way to change the cpu utilization graph in hobbit to take advantage<br>of this? One small obstacle I see is that the sar output is *slightly* different on say, linux and aix:</p>
<p># sar -P ALL 1 1<br>Linux 2.6.9-5.ELsmp (rp-ladmin) 12/05/2005</p>
<p>02:34:00 PM CPU %user %nice %system %iowait %idle<br>02:34:01 PM all 0.00 0.00 0.00 0.00 100.00<br>02:34:01 PM 0 0.00 0.00 0.00 0.00 100.00
<br>02:34:01 PM 1 0.00 0.00 0.00 0.00 100.00<br></p>
<p>Same data, with the exception of adding "ALL" and spelling out user/system etc..</p>
<p>It's one of those things that's either more complicated than it looks, or easier than I think :-)</p>
<p>Thanks,<br>Jeff</p></div>