Common commands for Linux/Uinx to view system resource usage

Source: Internet
Author: User

1.Top

This common Monitored object is the average load and CPU load. Use top help to obtain the specific parameters.

 

2.Iostat

This command displays the following items by default:

% USER: user-level applicationProgramCPU usage percentage

% SYS: Percentage of CPU usage of system-level applications

% Iowait system/Application wait for percentage of disk I/O requests not completed

% Idle indicates that the system is idle.

 

3.Vmstat

Reports virtual memory statistics

Procs column:

R indicates the number of kernel threads in the running queue.

B indicates the number of kernel threads in the waiting queue

Memory column:

SWPD indicates swap memory

Free indicates idle memory.

Buff unknown

Cache indicates the buffer.

The swap column, I/O column, system column, CPU column, and so on can play a monitoring role!

 

PS: the commands for viewing system resources vary with host platforms.

For example, using the TOP Command on UNIX systems to view CPU and resource information is more accurate;

The usage of the top command in Linux is inaccurate because there is no thread in Linux, so there are many different processing methods!

 

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.