Introduction to the vmstat command for Linux host Maintenance

Source: Internet
Author: User
Article Title: Introduction to the vmstat command for Linux host maintenance. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

The vmstat command is a method for displaying linux performance indicators. The output types include process (procs), memory (memory), swap zone (swap), and I/O (io), system, and CPU ). Similar to iostat, the first sample is the average value since the recent restart.

For example, the-m option in vmstat-m 5 3 enables memory fields to be displayed in MB.

The r column is the number of processes that can be run, and the B column is the number of blocked processes.

In the memory part, swpd indicates the number of swap space in use, free indicates the number of free RAM, buff indicates the number of RAM used by the buffer, and cache indicates the number of RAM used by the file system cache.

In the switch, si indicates the number of pages from disk to memory, and so indicates the number of pages from memory to disk.

Bi indicates the block read from the disk, and bo indicates the block written to the disk.

In indicates that the system is interrupted. Cs indicates the process context switch.

Us indicates user mode, sy indicates kernel mode, wa indicates waiting for I/O, and id indicates space.

The ls command is one of the most common commands in linux. -A lists all files in the directory, including. Hidden file. -B lists the characters that cannot be output in the file by backslash and character number. -L list the details of a file.

The pwd command can determine the exact location of the current directory in the file system. Pwd indicates print working directory, that is, print the working directory.

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.