Classic top interpretation guide

Source: Internet
Author: User
Top is definitely one of the most widely used monitoring system commands in linux. some important parameters mean that the rightmost load in the first line refers to the average load of 1 minute, 5 minutes, 15 minutes, and 2 respectively. zombie on the right of the row refers to the zombie process. A zombie process refers to a sub-process exiting...

Top is definitely one of the most widely used monitoring system commands in linux.
 

Explain the meanings of some important parameters
The rightmost load in the first line indicates the average load of 1 minute, 5 minutes, and 15 minutes respectively.
Zombie on the right of the second line refers to the zombie process. A zombie process means that the parent process does not process the exit signal of the child process after the child process exits, causing the child process to become a zombie process.
The third line is important.
The current CPU usage is displayed. % us (user) indicates the time ratio of cpu usage in user state programs; % sy (sys) it refers to the time ratio of the cpu used in the kernel state program; % ni (nice) refers to the time ratio of the user State program used in nice priority adjustment; % id (idle) it refers to the cpu idle time ratio; % wa (iowait) refers to the time ratio of cpu waiting for system io; % hi refers to the time ratio of cpu processing hardware interruption; % si indicates the time ratio of the cpu to process soft interruptions; % st (steal) indicates the cpu time stolen by the virtual machine when there is a virtual cpu. Normally, the % id (idle) value can reflect the degree of idle cpu of a system.
The Forth and fifth lines show the actual memory usage, including the total memory usage, usage, free space, and the total swap partition usage, and free space. In addition, the difference between buffers and cached should be explained. buffers refers to the read/write buffer of block devices, and cached refers to the page cache of the file system. They are all underlying mechanisms of the linux operating system to accelerate disk access.
The sixth row is followed by the process List. common columns have the following meanings: PID (process number), USER (running USER), PR (priority ), NI (nice task value), VIRT (virtual memory usage), RES (physical memory usage), SHR (shared memory usage), S (process status ), % CPU (CPU usage ratio), % MEM (memory usage ratio), TIME + (accumulated CPU usage TIME ).
In addition to this information, top also provides many commands to help me better interpret this information. for example, you can sort the information by memory usage by pressing the "M" key; "P" can be sorted by CPU usage. "1" can be used to display the CPU status of multiple CPU cores, which is helpful for analyzing system bottlenecks, press "f" to go to the interaction page and select the specified column to display. for example, you can press "B" to select to display the PPID, and then press "B" to cancel the display." R "can change the nice value of a process;" k "can send signals to a process;" z "can be displayed in color.
 
Author: "You should be an exaggeration"

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.