1. The last two parameters of sar are generally interval count.
1. sar-u 1 5
CPU usage statistics are output once per second, with a total of 5 Outputs
[Root @ stage1-new9 sysstat-10.0.5] # sar-u 1 5
Linux 2.6.9-67. ELsmp (stage1-new9.intra99bill.com) 06/12/2012 _ x86_64 _ (8 CPU)
11:34:43 am cpu % user % nice % system % iowait % steal % idle
11:34:44 AM all 0.00 0.00 0.00 0.00 0.00 100.00
11:34:45 AM all 0.00 0.00 0.12 0.00 0.00 99.88
11:34:46 AM all 0.00 0.00 0.00 0.00 0.00 100.00
11:34:47 AM all 0.00 0.00 0.12 0.00 0.00 99.88
11:34:48 AM all 0.00 0.00 0.00 0.00 0.00 100.00
Average: all 0.00 0.00 0.05 0.00 0.00
CPU all indicates that the statistical information is the average value of all CPUs.
% User shows the percentage of total CPU usage at the user level (application.
% Nice is displayed at the user level as a percentage of the total CPU usage for nice operations.
% Percentage of the total CPU usage of system at the core level (kernel.
% Iowait displays the percentage of CPU usage for waiting for I/O operations.
% Percentage of virtual CPUs waiting for the steal hypervisor to provide services for another virtual process.
% Idle shows the percentage of CPU usage in idle time.
Tips:
If % iowait is too high, it indicates that the hard disk has an I/O bottleneck.
If the value of % idle is high but the system response is slow, the CPU may be waiting for memory allocation. In this case, the memory capacity should be increased.
If the value of % idle is lower than 10, the CPU processing capability of the system is relatively low, indicating that the most important resource to be solved in the system is the CPU.
2. sar-B 1 5
Displays the I/O and transfer rate statistics
17: 09 minutes 07 seconds tps rtps wtps bread/s bwrtn/s
17: 09 minutes 08 seconds 3.12 3.12 0.00 25.00 0.00
17: 09 minute 09 second 89.58 6.25 83.33 141.67 733.33
17: 09 minutes 10 seconds 42.71 9.38 33.33 141.67
17: 09 minute 11 second 2.11 2.11 0.00 16.84 0.00
17: 09 minutes 12 seconds 1.04 0.00 1.04 0.00
Average: 27.77 4.18 23.59 65.14 302.30
Tps total I/O transmission of physical devices per second
Total amount of data that rtps reads from physical devices per second
Total data written by wtps to physical devices per second
The amount of data that bread/s reads from the physical device per second. The unit is block/s.
The amount of data written by bwrtn/s to the physical device per second. The unit is block/s.
Sysstat details: click here
Sysstat: click here
Monitor Linux parameters through sysstat
Install sysstat in SUSE
This article is not complete. Continue to read the content on page 1: