Linux top commands
Enter the top command to enter
I. Upper Part
1. First line (task queue Information)
Current Time
Indicates the system running time.
Current Login User count
The current system load (load balancing), 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.
The smaller the value, the easier the system. If the sum of the three numbers is divided by 3 and greater than 0.6, the system is very nervous.
2. Process and CPU information (when multiple CPUs exist, the content may exceed two rows)
Current process count
Number of processes currently running
Number of sleep Processes
Number of stopped Processes
Number of zombie Processes
Cpu (s): 0.4% us: CPU usage percentage of user space, 03% sy: CPU usage percentage of kernel space, 0.0% ni: CPU usage percentage of processes that have changed their priorities in user process space, 99.3% id: Percentage of idle CPU
3. Memory information of the 4th Five-Year Behavior
Total physical memory
Total physical memory used
Total idle memory
Memory Used as kernel Cache
Total swap area (similar to the concept of virtual memory in windows)
Total number of swap zones used
Total number of idle swap Areas
The total number of buffer swap areas. The content in the memory is swapped out to the swap zone and then into the memory, but the used swap zone has not been overwritten. This value is the size of the SWAp zone where the content already exists. When the corresponding memory is swapped out again, you do not have to write data to the swap zone.
Ii. Lower half
Column name |
Description |
PID |
Process id |
PPID |
Parent process id |
RUSER |
Real user name |
UID |
User ID of the process owner |
USER |
User Name of the process owner |
GROUP |
Group Name of the process owner |
TTY |
The terminal name of the startup process. Processes not started from the terminal are displayed? |
PR |
Priority |
NI |
Nice value. A negative value indicates a high priority, and a positive value indicates a low priority. |
P |
The last CPU used is only meaningful in multiple CPU environments. |
% CPU |
CPU usage from the last update to the present |
TIME |
Total CPU time used by the process, in seconds |
TIME + |
Total CPU time used by the process, in 1/100 seconds |
% MEM |
Percentage of physical memory used by the Process |
VIRT |
Total virtual memory used by the process, in kb. VIRT = SWAP + RES |
SWAP |
In the virtual memory used by the process, the swap size, in kb. |
RES |
Physical memory used by the process, not swapped out, in kb. RES = CODE + DATA |
CODE |
Physical memory occupied by executable code, in kb |
DATA |
Physical memory occupied by parts other than executable code (Data Segment + stack), in kb |
SHR |
Size of shared memory, in kb |
NFLT |
Page error count |
MCM t |
The number of pages that have been modified since the last write to the present. |
S |
Process status. D = uninterrupted sleep R = run S = sleep T = tracking/stopping Z = zombie Process |
COMMAND |
Command name/command line |
WCHAN |
If the process is sleeping, the system function name displayed in sleep |
Flags |
Task flag, refer to sched. h |
Appendix:
Linux top commands
Linux top commands for monitoring and diagnosis tools
Top command causes system load increase
Practical top Command
Why does Linux's htop command win the top command?
Use the most powerful process monitor htop in Ubuntu
This article permanently updates the link address: