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.

10.1 CPU-bound system<br />

CPU performance problems can be handled in different ways. For example:<br />

► Reschedule tasks to a less active time of the day or week.<br />

► Change the priority of processes.<br />

► Manipulate the scheduler to prioritize foreground processes.<br />

► Implement Workload Manager.<br />

► Buy more CPU power.<br />

Whatever the solution finally will be, the way to the solution is usually the same:<br />

Identify the process (or groups of processes) that constrains the CPU. When<br />

working with CPU performance tuning problems, historical performance<br />

information for comparison reasons is useful, if such is available. A very useful<br />

tool for this task is the sar command.<br />

10.1.1 The sar command<br />

The sar command gathers statistical data about the system. Though it can be<br />

used to gather useful data regarding system performance, the sar command can<br />

increase the system load, which will worsen a pre-existing performance problem.<br />

The system maintains a series of system activity counters. which record various<br />

activities, such as fork rates. The sar command does not cause these counters<br />

to be updated or used; this is done automatically, regardless of whether the sar<br />

command runs. It merely extracts the data in the counters and saves it, based on<br />

the sampling rate specified to the sar command. There are three situations in<br />

which to use the sar command; they are discussed in the following sections.<br />

Real-time sampling and display<br />

To collect and display system statistic reports immediately, use the following<br />

command:<br />

# sar -u 2 5<br />

<strong>AIX</strong> texmex 3 4 000691854C00 01/27/00<br />

17:58:15 %usr %sys %wio %idle<br />

17:58:17 43 9 1 46<br />

17:58:19 35 17 3 45<br />

17:58:21 36 22 20 23<br />

17:58:23 21 17 0 63<br />

17:58:25 85 12 3 0<br />

Average 44 15 5 35<br />

This example is from a single user workstation and shows the CPU utilization.<br />

Chapter 10. Performance problem determination 235

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

Saved successfully!

Ooh no, something went wrong!