Detailed explanation of top command parameters under CentOS7

Source: Internet
Author: User

Detailed explanation of top command parameters under CentOS7
As one of the most common commands in linux, the top command is used to analyze the performance of linux. This command is often used, but the meaning of each parameter has not been fully understood. The following gives a detailed summary of the meaning of each parameter in the top command: the first line: top-16:10:53 up 37 days,, 4 users, load average: 0.00, 0.00, 0.0016:10:53 current time up 37 days20: 20 system running time, format: minute 4 user current login user load average: 0.00, 0.00, 0.00 system load, that is, the average length of the task queue. The three values are the average values from 1 minute, 5 minutes, and 15 minutes ago to the present.

Ps: although I know that load average is the meaning of system load, I didn't understand what it means. The reference materials I found after google:

Limit 259 total, 2 running, 257 sleeping, 0 stopped, 0 zombieTasks: 259 total processes 2 running processes running 257 sleeping processes 0 stopped processes 0 zombie botnetsRow 3: Cpu (s): 0.2% us, 0.6% sy, 0.0% ni, 99.3% id, 0.0% wa, 0.0% hi, 0.0% si, 0.0% stCpu (s ): 0.2% us user space CPU usage 0.6% sy kernel space CPU usage 0.0% ni user process space CPU usage of processes that have changed their priorities 99.3% id idle CPU usage 0.0% wa CPU waiting for Input and Output time percentage 0.0% hi hard interrupt (Hardware IRQ) CPU usage 0.0% si Soft Interrupt (Software Interrupts) CPU usage 0.0% st Virtual Machine stealing time

Ps: For more information about these parameters, see http://www.cnblogs.com/yjf512/p/3383915.html.

Row 4: Mem: 16143520 k total, 15581588 k used, 561932 k free, 919728 k buffersMem: 16143520 k total physical memory total 15581588 k used total physical memory used 561932 k free memory total 919728 k buffers used as core cache memoryPs: Unit: kb Row 5: Swap: 8011768 k total, 58072 k used, 7953696 k free, 11067628 k cachedSwap: 8011768 k total Swap areas total 58072 k used Swap areas total 7953696 k free Swap areas total 11067628 k cached buffer Swap Areas totalProcess List:The column name indicates the terminal name of the process started by TTY. Processes not started from the terminal are displayed? PR priority NInice value. A negative value indicates a high priority, and a positive value indicates the CPU used at the end of low priority P, only meaningful in multi-CPU environment % CPU usage percentage of cpu time last updated to the present TIME total cpu time used by the process, in seconds TIME + total cpu time used by the process, unit: 1/100 seconds % MEM percentage of physical memory used by the process VIRT Total virtual memory used by the process, unit: kb. VIRT = SWAP + RESSWAP process in the virtual memory, the size of the SWAP, in kb. The size of the physical memory used by the RES process, Not swapped out, in kb. RES = CODE + DATACODE the physical memory occupied by executable CODE. The unit is the physical memory occupied by parts other than kbDATA executable CODE (Data Segment + stack), and the Unit is the kbSHR shared memory, unit: kbnFLT page error count. Number of modified pages that have been written to the present at the last time. S Process status.
D = uninterrupted sleep
R = run
S = sleep
T = tracking/stopping
Z = zombie process COMMAND name/COMMAND line WCHAN if the process is sleeping, the system function name Flags task mark in sleep is displayed. For details, refer to sched. h.Command:-q: Exit top Command-<Space>: refresh now-s: Set the refresh interval-c: Display command full mode-t :: display or hide process and CPU status information-m: display or hide memory status information-l: display or hide uptime information-f: add or remove process display flag-S: accumulative mode, the CPU time occupied by completed or exited sub-processes is accumulated to the MITE +-P of the parent process: ranked by % CPU usage-T: ranked by MITE +-M: by % MEM ranking-u: Specify Display User process-r: Modify process renice value-kkill: process-I: only display running process-W: save the top settings to the file ^ /. toprc. The setting of the toprc file will be automatically called at the next startup. -H: HELP command. -Q: Exit

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.