Explanation of top values in CentOS

Source: Internet
Author: User
During system maintenance, you may need to check the CPU usage at any time and analyze the system status based on the relevant information. In CentOS, you can use the top command to view CPU usage. After the top command is run, the CPU usage status is displayed in full screen mode and in dialog mode. The top-based command can be used to control the display mode. The command to exit top is q (press q once in top running ). Operation instance:

During system maintenance, you may need to check the CPU usage at any time and analyze the system status based on the relevant information. In CentOS, you can use the top command to view CPU usage. After the top command is run, the CPU usage status is displayed in full screen mode and in dialog mode. The top-based command can be used to control the display mode. The command to exit top is q (press q once in top running ).

Operation instance:

Enter "top" in the command line"

You can start top

The top full-screen dialog mode can be divided into three parts: system information, command input, and process list.

Part 1-system information bar at the top:

The first line (top ):

"00:11:04" indicates the current system time;

Is the current operating time after the system is started;

"2 users" is the user Currently logged on to the system, more specifically, the number of terminals that log on to a user-connections to multiple terminals of the system from the same user at the same time are considered as connections from multiple users to the system, the number of users here will also be the number of terminals;

"Load average" is the average value of the current system load. the following three values are the average number of processes 1 minute ago, 5 minutes ago, and 15 minutes ago, respectively, generally, when this value exceeds the number of CPUs, the CPU will be overloaded with the processes contained in the current system;

Line 2 (Tasks ):

"59 total" indicates the total number of processes in the current system;

"1 running" indicates the number of processes currently running;

"58 sleeping" indicates the number of processes in the waiting status;

"0 stoped" indicates the number of stopped system processes;

"0 zombie" indicates the number of recovered processes;

Row 3 (Cpus ):

Indicates the current CPU usage;

Row 4 (Mem ):

Total Memory, current usage, idle memory, and buffer memory respectively;

The fifth line (Swap ):

Indicates that the category is the same as the fourth row (Mem), but this shows the usage of Swap partition (Swap. In general, Swap partitions (Swap) are frequently used and are considered to be caused by insufficient physical memory.

The second part -- internal command prompt bar in the middle part:

You can use top's internal commands to control the display mode of processes. The internal commands are as follows:

S

-Change the screen update frequency

L-disable or enable the first line of top information in the first part.

T-disable or enable the expression of the first part of the second line of Tasks and the third line of Cpus information

M-disable or enable the expression of the first part of the fourth line of Mem and the fifth line of Swap information

N-process list in the order of PID size (part 3 is described later)

P-sort the process list in the order of CPU usage (part 3 is described later)

M-sort the process list in the order of memory usage (part 3 is described later)

H-show Help

N-set the number of processes displayed in the process List

Q-exit top

S-

Change screen update cycle

Part 3-bottom

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.