21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

0 * * * 0,6 /usr/lib/sa/sa1 &<br />

0 18-7 * * 1-5 /usr/lib/sa/sa1 &<br />

5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 3600 -ubcwyaqvm &<br />

#=========================================================<br />

Collection of data in this manner is useful to characterize system usage over a<br />

period of time and to determine peak usage hours.<br />

Another useful feature of the sar command is that the output can be specific for<br />

the usage of each processor in a multiprocessor environment, as seen in the<br />

following output. The last line is an average output:<br />

# sar -P ALL 2 1<br />

<strong>AIX</strong> client1 3 4 000BC6DD4C00 07/06/00<br />

14:46:52 cpu %usr %sys %wio %idle<br />

14:46:54 0 0 0 0 100<br />

1 0 1 0 99<br />

2 0 0 0 100<br />

3 0 0 0 100<br />

- 0 0 0 100<br />

In general, if %usr plus %sys is consistently over 80 percent, then the system is<br />

CPU bound.<br />

System calls<br />

The sar -c command reports system calls.<br />

# sar -c 1 10<br />

<strong>AIX</strong> server2 3 4 000FA17D4C00 06/30/00<br />

09:33:04 scall/s sread/s swrit/s fork/s exec/s rchar/s wchar/s<br />

09:33:05 1050 279 118 0.00 0.00 911220 5376749<br />

09:33:06 186 19 74 0.00 0.00 3272 3226417<br />

09:33:07 221 19 79 0.00 0.00 3272 3277806<br />

09:33:08 2996 132 400 0.00 0.00 314800 2284933<br />

09:33:09 3304 237 294 0.00 0.00 167733 848174<br />

09:33:10 4186 282 391 0.00 0.00 228196 509414<br />

09:33:11 1938 109 182 1.00 1.00 153703 1297872<br />

09:33:12 3263 179 303 0.00 0.00 242048 1003364<br />

09:33:13 2751 172 258 0.00 0.00 155082 693801<br />

09:33:14 2827 187 285 0.00 0.00 174059 1155239<br />

Chapter 10. Performance problem determination 237

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!