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.

control, the blocked column (b) in the vmstat command report indicates the<br />

increase in the number of threads rather than the run queue.<br />

The cpu columns<br />

The four right-hand columns are a breakdown, in percentage of CPU time used,<br />

of user threads, system threads, CPU idle time (running the wait process), and<br />

CPU idle time when the system had outstanding disk or NFS I/O requests.<br />

The us column<br />

The us column shows the percent of CPU time spent in user mode. A UNIX<br />

process can execute in either user mode or system (kernel) mode. When in user<br />

mode, a process executes within its application code and does not require kernel<br />

resources to perform computations, manage memory, or set variables.<br />

The sy column<br />

The sy column details the percentage of time the CPU was executing a process<br />

in system mode. This includes CPU resource consumed by kernel processes<br />

(kprocs) and others that need access to kernel resources. If a process needs<br />

kernel resources, it must execute a system call, and is thereby switched to<br />

system mode to make that resource available. For example, reading or writing of<br />

a file requires kernel resources to open the file, seek a specific location, and read<br />

or write data, unless memory mapped files are used.<br />

The id column<br />

The id column shows the percentage of time that the CPU is idle, or waiting,<br />

without pending local disk I/O. If there are no processes available for execution<br />

(the run queue is empty), the system dispatches a process called wait. On an<br />

SMP system, one wait process per processor can be dispatched. On a<br />

uniprocessor system, the process ID (PID) is usually 516. SMP systems will have<br />

an idle kproc for each processor. If the ps command report shows a high<br />

aggregate time for this process, it means there were significant periods of time<br />

when no other process was ready to run or waiting to be executed on the CPU.<br />

The system was therefore mostly idle and waiting for new tasks.<br />

If there are no I/Os pending to a local disk, all time charged to wait is classified as<br />

idle time. In <strong>AIX</strong> Version 4.3.2 and earlier, an access to remote disks<br />

(NFS-mounted disks) is treated as idle time (with a small amount of sy time to<br />

execute the NFS requests) because there is no pending I/O request to a local<br />

disk. With <strong>AIX</strong> Version 4.3.3 and later, NFS goes through the buffer cache, and<br />

waits in those routines are accounted for in the wa statistics.<br />

The wa column<br />

The wa column details the percentage of time the CPU was idle with pending<br />

local disk I/O (this is also true for NFS-mounted disks in <strong>AIX</strong> Version 4.3.3 and<br />

Chapter 10. Performance problem determination 239

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

Saved successfully!

Ooh no, something went wrong!