Linux under the W command to see the system load:
The first line of the command results shows the three numbers after load average meaning:
1 minutes, 5 minutes, 15 minutes, the average number of processes per unit time using CPU resources, the larger the value represents the number of processes that use CPU resources per unit of time. You can use Cat/proc/cpuinfo to view CPU information processor The number of CPU cores that appear after
If the average number of processes that use CPU resources in 1 minutes is greater than the number of CPU cores, the CPU is under pressure.
Vmstat command: Vmstat 1 10 indicates that one second shows a total of 10 times
The results shown by the Vmstat command indicate:
R column, which indicates how many tasks are in the run State;
Column B, blocked. The number of tasks that are blocked by IO;
Swpad column, how much data volume is exchanged when installing the system there is a swap partition to avoid when the memory is full, a portion of the disk space can be simulated into memory. Indicates how much data (KB) has been taken to the swap partition. This value is very large or frequent changes, it is necessary to note that the memory is not enough or memory overflow;
SI/SO columns, data exchanged per second (KB) if the value is always 0, or is small, there is no problem with memory. If the value changes frequently and is longer than 0, it is possible that the memory is not enough;
Bi/bo column, the data size of read/write disk per second, the value of long-term is more than 1000, it is possible to create bottlenecks;
In/cs column, number of interrupts/context switch, the measurement of the bottleneck of the two columns of reference is not very large, unless the value is high, the high words indicate that the CPU is under pressure;
Us/sy the user-state process consumes a percentage of CPU/kernel-state processes that consume a percentage of the CPU;
WA column The percentage of the process that waits for the CPU to occupy.
Several columns to pay attention to: R;b;si;so;bi;bo;us (us if it is often higher than 50 or close to 100%, which means that a process uses a large CPU resource and needs to be optimized)
This article is from the "11647651" blog, please be sure to keep this source http://11657651.blog.51cto.com/11647651/1787179
W and Vmstat detailed