| |
 |
|
Oracle Tips by Burleson Consulting
|
sar –u: The CPU Report
The sar –u command is very useful for seeing the overall CPU
consumption over time. In the example that follows, I execute sar –u
to see the state of the CPU. CPU time can be allocated into the
following four sections: user mode, system mode, waiting on I/O, and
idle.
root> sar -u 2 5
HP-UX corp-hp1 B.11.00 U 9000/800 12/25/00
07:18:44 %usr %sys %wio %idle
07:18:46 0 0 1 99
07:18:48 0 0 1 99
07:18:50 4 0 13 83
07:18:52 2 1 7 90
07:18:54 0 0 3 98
Average 1 0 5 93
 |
For more details and scripts, see my new book "
Oracle
Tuning: The Definitive Reference", over 900 pages
of BC's favorite tuning tips & scripts.
You can buy it direct from the publisher for 30%-off and get
instant access to the code depot. |
|