Use the vmstat command in Linux to view the system status

Source: Internet
Author: User

In Linux, we can use the top command to view the system status and the specific status of each process. However, you can also use the vmstat command to view additional information.

The vmstat command can be used to view memory, swap usage, io usage, CPU usage, and other System conditions. You can view several small entries in each of the preceding categories. For example, in the memory category, you can see how much memory is available and how much buffer is there. You can also view the CPU usage. Idle.

However, if you use vmstat, only the average status of the system is displayed, and one message is displayed. At this time, if we want to let the system average output a message every second, we can use the parameter method to achieve the effect.

Vmstat 1

This command allows one message per second. In this way, you can see how the system resources have changed.

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.