Vmstat of Basic Linux commands

Source: Internet
Author: User

1. Basic Introduction

The meaning of the Vmstat command is to display the virtual memory status ("Viryual memor Statics"), but it can report on the overall operational state of the system, such as process, memory, I/O, etc.

2. Syntax

vmstat (option) (parameter)

Option:-A: Displays the active page;-F: Displays the total number of processes created after startup;-M: Displays slab information;-N: Header information is displayed only once;-S: Displays the event counter and memory status in tabular format;-D: reports the disk status;-P: Displays the specified hard disk partition status;-S: Parameters: Event Interval: time interval for status information refresh; Number of times: the number of times the report is displayed.


3. Detailed

[[email protected] ~]# vmstat  3 10procs -----------Memory---------- - --swap-- -----IO---- -system-- ------CPU----- r  b   swpd    free   buff  cache   si   so     bi    bo   in   cs us sy id  wa st 1  0      0 949456   1568  441012    0    0    15    24    24   29  0  0 99  0  0 0   0      0 949456   1568 441012     0    0     0     0    26   39  0  0 100  0  0 0  0       0 949456   1568 441012    0    0      0     0   24   41   0  0 100  0  0 0  0       0 949456   1568 441012    0    0      0     0   26   40  0   0 100  0  0 0  0      0  949456   1568 441012    0    0      0     0   19   34  0   0 100  0  0 0  0      0 949580   1568  441012    0    0     0      0   29   46  0  0 100  0   0

Displays every three seconds, showing a total of 10 times.

Procs:r: The process waiting in the run queue to determine if the CPU is sufficient, if it is longer than 1. B: In the process waiting for IO MEMORY:SWPD: Swap memory already in use (KB) Free: idle physical Memory (KB) Buff: Memory used as buffer (KB) cache: Memory for cache (KB), if cache is high, indicates frequently accessed Files are in the cache, the disk's bi will be reduced.    Swap:si: Number of swap pages from disk to swap memory (KB/S), disk-to-memory (memory-centric) so: number of swap pages from memory to disk (KB/S), memory to disk Io:bi: number of blocks sent to block device, number of blocks read per second. Bo: The number of blocks received from the block device, the number of blocks written per second.    System:in: Number of interrupts per second, including clock interrupts.    CS: The number of context switches per second Cpu:us: The time the user uses the CPU (%), if us is higher, the user process consumes high CPU.    SY: The system process uses CPU time, if SY is relatively high, it means that the system core consumes CPU relatively high. ID:CPU Idle time wa: Wait for IO to consume CPU time, WA is relatively high, indicating that IO wait is more serious.    There may be a lot of random disk access, or there may be a disk bottleneck problem. ST: the time obtained from the virtual appliance








This article is from the "where Paobao" blog, please be sure to keep this source http://nxyboy.blog.51cto.com/10511646/1932510

Vmstat of Basic Linux commands

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.