Vmstat output parsing in Linux

Source: Internet
Author: User
Vmstat output in Linux: Vmstatprocs ----------- memory --------------- swap ------- io ------ system ------ cpu ---- rbswpdfreebuffcachesisobiboincsussyidwa001001522... explain vmstat output in Linux: vmstatprocs ----------- memory ---------- --- swap -- ----- io ---- system -- ---- cpu ---- r B swpd free buff cache si so bi bo in cs us sy id wa0 0 100152 2436 97200 0 1 34 45 99 33 0 0 99 0 procsr column indicates the number of processes running and waiting for cpu time slice, if the number of CPUs exceeds the long-term limit, the cpu is insufficient. To increase the cpu usage. Column B indicates the number of processes waiting for resources, such as waiting for I/O or memory switching. The number of memories that memoryswpd switches to the memory swap area (k indicates ). If the value of swpd is not 0, or it is relatively large, for example, if it exceeds 100 m, as long as the value of si and so is 0 for a long time, system performance is still normal free the number of memory in the current idle page List (k indicates) the number of buff memory used as the buffer cache. generally, buffer is required for reading and writing block devices. Cache: the amount of memory that is used as the page cache. generally, it is used as the cache of the file system. if the cache is large, it indicates that there are many files in the cache. if the bi in IO is small at this time, it indicates that the file system is more efficient. The number of swapsi switches from memory to memory swap zone. So the number of memory entries in the memory swap zone. The total amount of data IObi reads from block devices (read disk) (kb per second ). Total number of data written to bo block devices (disk writing) (kb per second) system displays the number of interruptions occurred during the collection interval in column, indicating the number of device interruptions per second observed at a certain time interval. The cs column indicates the number of context switches generated per second. If cs is much higher than the disk I/O and network information packet rate, further investigation should be conducted. Cpu indicates the cpu usage status. the us column shows the percentage of CPU time consumed in user mode. When the value of us is high, it indicates that the user process consumes a lot of cpu time. However, if it is longer than 50%, you need to consider optimizing your program. The sy column shows the percentage of cpu time consumed by the kernel process. Here, the reference value of us + sy is 80%. if the value of us + sy is greater than 80%, there may be insufficient CPU. The wa column shows the percentage of CPU time occupied by IO wait. The reference value of wa is 30%. if wa exceeds 30%, the IO wait is serious, which may be caused by a large number of random access to the disk, it may also be caused by the bandwidth bottleneck of the disk or disk access controller (mainly block operations ). The id column shows the percentage of time when the cpu is idle. author qinggzha
Related Article

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.