View CPU, memory load conditions under Linux system

Source: Internet
Author: User
Tags cpu usage

Tag:linux    load     memory    cpu   

$ vmstatprocs-----------memory-------------Swap-------io------System-------CPU------r B swpd free buff cache   Si so bi bo in CS us sy ID WA St 1 4 329796 26040 4528 3379824 1 1 50 160 36 17 2 10 85 3 0 The results are explained as follows: The PROCSR column represents the number of processes running and waiting for the CPU time slice, if the long term is greater than 1, the CPU is not sufficient and needs to be increased. Column B indicates the number of processes waiting on the resource, such as waiting for I/O, or memory swapping. CPU indicates the CPU Usage status US column shows the percentage of CPU time that is spent in user mode. When the value of us is higher, the user process consumes more CPU time, but if the long-term is greater than 50%, you need to consider optimizing the user's program. The SY column shows the percentage of CPU time that the kernel process spends. Here US + SY reference value is 80%, if us+sy greater than 80% indicates that there may be insufficient CPU. The WA column shows the percentage of CPU time consumed by IO waits. Here WA has a reference value of 30%, if WA is more than 30%, it indicates that the IO wait is serious, this may be caused by a lot of random access to disk, or the bandwidth bottleneck of disk or disk access controller (mainly block operation). The ID column shows the percentage of time that the CPU is idle in the system displays the number of interrupts that occurred during the acquisition interval the in column represents the number of device interrupts observed per second in a time interval. The CS column represents the number of context switches produced per second, such as when CS is much higher than disk I/O and network packet rates, and should be investigated further. MEMORYSWPD The amount of memory to switch to the memory Swap area (k). If the value of SWPD is not 0, or larger, for example, more than 100m, as long as the value of Si, so long 0, system performance or normal free page list of memory (k) Buff as buffer cache memory amount, generally to block device read and write only need to buffer. Cache: As the number of memory page cache, generally as the file system cache, if the cache is large, indicating that the file with the cache is more, if at this time bi is relatively small in Io, the file system efficiency is better. Swapsi the number of memory swap areas that are entered by memory. So the memory swap area enters the amount of memory. Iobi The total amount of data read from the block device (read disk) (KB per second). The total amount of data written by the BO block device (write disk) (KB per second)

View CPU, memory load under Linux system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.