Linux System Management Common command--top
Top Displays the system resources that the process occupies, as described in the following examples:
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/93/28/wKiom1kIfarCcDFSAABSrtVzUyA098.png "title=" 11. PNG "alt=" Wkiom1kifarccdfsaabsrtvzuya098.png "/>
The top command is used to dynamically monitor the system resources that the process occupies, and it changes every 3 seconds by default. It is characterized by putting the highest processes that occupy system resources (CPU, memory, disk I/O, etc.) to the front! in the example above, the top command prints a lot of information. Includes system load (loadaverage), Number of processes (Tasks), CPU usage, memory (MEM) usage, and swap partition usage.
WhereVirt This represents the virtual memory that the process occupies, the res is the actual memory size of the process, and%mem is the percentage of memory used. in the state of top, press the Shift+m key to sort by memory size, by the number 1 can list the usage status of each CPU.
Note:
The running in (1) represents a process that is being processed or queued.
(2) zombie represents a zombie process (that is, a dead process), and few of these processes.
(3) in the CPU the US represents the average CPU consumption ratio, and SY represents the kernel CPU consumption ratio.
Here's a look at the top common options and commands:
Exit the top command can use the Q key or CTRL + C;
Top-c indicates that the entire command is listed, as shown in: 650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/93/28/ Wkiom1kigrqtqar0aabqhix1bny706.png "title=" 11.PNG "alt=" Wkiom1kigrqtqar0aabqhix1bny706.png "/>
Top-d 5 (5 sec. Change once)
top-bn1(1 is a number, the output is static and is used in shell scripts.) )
Top-p PID ( Viewing the case of the program)
Top-u User Name
This article is from the "Hand of the Paladin Control" blog, please make sure to keep this source http://wutengfei.blog.51cto.com/10942117/1921259
Linux System Management Common command--top