Enter the top command
First, the upper part
1. First line (Task queue information)
Represents the current time
Indicates system run time
Number of currently logged on users
The current system load condition (load balancing), which is the average length of the task queue. The three values were 1 minutes, 5 minutes, and 15 minutes ago to the present average.
A smaller number means that the system is easier and the system is already very tense when three numbers are added together and divided by 3 is more than 0.6.
2. Second to third behavior process and CPU information (these contents may exceed two lines when there are multiple CPUs)
Total number of current processes
Number of processes currently running
Number of processes for sleep
Number of processes stopped
Number of zombie processes
CPU (s): 0.4% us: User space consumes CPU percentage, 03% sy: CPU percentage in kernel space, 0.0% ni: Percentage of CPU that has changed priority in user process space, 99.3% ID: Percentage of idle CPU
3.45th Behavior Memory Information
Total Physical Memory
Total amount of physical memory used
Total Free Memory
Amount of memory to use as the kernel cache
Total swap area (somewhat similar to the concept of virtual memory under Windows)
Total number of swap areas used
Total Free Swap Area
The total amount of buffer swap area. The in-memory content is swapped out to the swap area and then swapped in to memory, but the used swap area has not been overwritten, which is the size of the swap area where the content already exists in memory . When the corresponding memory is swapped out again, it is no longer necessary to write to the swap area.
The second half of the part
Column Name |
Meaning |
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 Process owner |
Tty |
The terminal name of the startup process. Processes that are not started from the terminal are displayed as? |
PR |
Priority level |
NI |
Nice value. Negative values indicate high priority, positive values indicate low priority |
P |
Last CPU used, only meaningful in multi-CPU environment |
%cpu |
CPU time consumption percentage last updated to current |
Time |
Total CPU time used by the process, in seconds |
time+ |
Total CPU time used by the process, Unit 1/100 sec |
%MEM |
Percentage of physical memory used by the process |
VIRT |
The total amount of virtual memory used by the process, in kilobytes. Virt=swap+res |
SWAP |
The size, in kilobytes, of the virtual memory that the process is using, swapped out. |
Res |
The size, in kilobytes, of the physical memory that the process used and was not swapped out. Res=code+data |
CODE |
The amount of physical memory the executable code occupies, in kilobytes |
DATA |
The amount of physical memory that is used by parts other than executable code (data segment + stack), in kilobytes |
Shr |
Shared memory size, in kilobytes |
Nflt |
Number of page faults |
Ndrt |
The number of pages that were modified the last time it was written to. |
S |
Process state. d= non-disruptive sleep state 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 in sleep is displayed |
Flags |
Task Flag, reference sched.h |
Report:
Linux Next Top command