Linux System Management Common command--top

Source: Internet
Author: User
Tags cpu usage

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:

    1. Exit the top command can use the Q key or CTRL + C;

    2. 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 "/>

    3. Top-d 5 (5 sec. Change once)

    4. top-bn1(1 is a number, the output is static and is used in shell scripts.) )

    5. Top-p PID ( Viewing the case of the program)

    6. 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

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.