Linux Performance Testing Tool Vmstat command

Source: Internet
Author: User

The Vmstat command of the Linux Performance Testing Tool monitors the process, memory, page I/O blocks, CPU, and other information. vmstat can display the average value or sample value of the testing results, the sampling mode provides monitoring results at different frequencies within a sampling period.


Linux Performance Testing Tool Vmstat command processprocs)
R: Number of processes waiting for running time
B: Processes in non-disruptive sleep state
W: process that is switched out but can still run. The value is calculated.


· Linux Performance Testing Tool Vmstat command memoryswpd: Number of virtual memory
Free: Number of idle memory
Buff: The amount of memory used as a buffer


Linux Performance Testing Tool Vmstat command-swap
Si: Number of switches from hard disk
So: Number of switches to the hard disk


Linux Performance Testing Tool Vmstat command · IO
Bi: number of blocks output to a block Device
Bo: number of blocks received from a device


Linux Performance Testing Tool Vmstat Command system
In: number of interruptions per second, including clock
Cs: Number of context switches occurring per second


· Linux Performance Testing Tool Vmstat command cpu (percentage of cpu running time)
Us: User time for running non-kernel code, including nice time)
Sy: kernel code running time system time)
Id: idle time. In kernel versions earlier than Linux 2.5.41, this value includes the I/O wait time;
Wa: The time for waiting for I/O operations. In Linux versions earlier than 2.5.41, this value is 0.


The Vmstat command provides a large number of additional parameters. The following lists several useful parameters:
Reference
· M: displays the memory usage of the kernel.
· A: displays the memory page information, including active and inactive memory pages.
· N: Display header lines. This parameter is useful when sampling mode is used and command results are output to a file. For example, root # vmstat-n 2 10 displays 10 output results at a frequency of 2 seconds.
· When-p {partition} is used, vmstat provides statistics on the I/O results

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.