 |
|
Oracle Tips by Burleson |
Displaying Multi-Processor
Statistics
The mpstat command displays statistics for each and every
processor within the system. The mpstat command accepts
interval (delay) and count (repeat) values as parameters. The
interval value defines the elapsed time period between report
detail lines, while the count value defines the iterations of the
detail lines that occur.
The following example uses an interval of 3 seconds and a
count of 5 iterations of the report detail lines. An average
summary line is produced at the end of the report.
$ mpstat 3 5
Linux 2.6.5-1.358 (Dell-Linux) 10/18/2004
10:33:26 PM CPU %user %nice
%system %iowait %irq %soft %idle intr/s
10:33:29 PM all 1.00 0.00 0.33 0.00 0.00 0.00 98.67 1001.99
10:33:32 PM all 0.33 0.00 0.33 0.00 0.00 0.00 99.33 1007.02
10:33:35 PM all 0.67 0.00 0.33 0.00 0.00 0.00 99.00 1002.67
10:33:38 PM all 0.66 0.00 0.33 0.00 0.00 0.00 99.00 1000.33
10:33:41 PM all 0.67 0.00 0.33 0.00 0.00 0.00 99.00 1005.67
Average: all 0.67 0.00 0.33 0.00 0.00 0.00 99.00 1003.53
The information from the mpstat report can be used to
determine if processor load is being distributed evenly across
the existing processors and if the multi-processing capabilities
of the server are being utilized effectively.
The above book excerpt is from:
Easy Linux
Commands
Working Examples of Linux Command Syntax
ISBN:
0-9759135-0-6
Terry Clark
http://www.rampant-books.com/book_2005_1_linux_commands.htm |