Top Command, top Command cpu
Performance tuning performance View display-top command details
Reprinted please indicate the source: http://blog.csdn.net/supera_li/article/details/45220205
Search for "Ali is working hard"
Top Command chart Overview
Top Command Information
Top rowInformation, time, Login User, average load information
It is the same as the command uptime display.
Description:
Current Time
Time when the system is running
Number of currently logged-on users
Corresponds to the average load in the last 5, 10, and 15 minutes.
Tasks rowInformation
The number of running, sleep, stopped, and zombie processes (a zombie is a process state ).
The process summary information can be switched to display with 'T.
Cpu row
Us, user: CPU time of the user process running (not prioritized)
Sy, system: CPU time for running the kernel Process
Ni, niced: CPU time for running user processes with adjusted priorities
Wa, IO wait: CPU time used to wait for IO completion
Hi: CPU time for handling hardware interruptions
Si: CPU time for processing software interruptions
St: CPU time stolen by the hypervisor ).
Mem row
Swap row
Mem is used for physical memory and swap is used for virtual memory (swap space ).
All available memory, used memory, idle memory, and buffered memory.
Same as the free command
By default, top displays the process attributes:
PID
Process ID, a unique identifier of a process
USER
The actual user name of the process owner.
PR
The scheduling priority of the process. Some values of this field are 'rt '. This means that these processes run in real time.
NI
Nice value (priority) of the process ). A smaller value indicates a higher priority.
VIRT
The virtual memory used by the process.
RES
Resident memory size. Resident memory is the non-swap physical memory size used by the task.
SHR
SHR is the shared memory used by the process.
S
This is the status of the process. It has the following different values:
D-an uninterrupted sleep state. R-running S-sleep T-tracked or stopped Z-botnets
% CPU
Percentage of CPU time used by the task since the last update.
% MEM
Percentage of available physical memory used by the process.
TIME +
The total CPU time used since the task was started, accurate to 1% seconds.
COMMAND
The command used to run the process.
Top Command Parameters
These are all triggered by pressing the corresponding key after entering the top view. They are interactive commands.
1. H': Help
2. 'or '': refresh the display
3. 'A': Switch the alternate Display Mode
4. B ': triggered in bold
5. 'D' or 'S': Set the display refresh interval.
6. L', 't', and 'M': displays information about switching loads, tasks, and memory.
7. 'F': Field Management
8. 'r': reverse sorting
9. C': trigger command
10. 'I': idle task
11. V': Tree View
12. Z': change the color
13. Z': Switch to Color Display
14. X' or 'y '. Switch highlight information: 'X' highlights the sorting field (column); 'y' highlights the running process (horizontal ). Depending on your display settings, you may need to make the output color to see these highlights.
15. 'U': Process of a specific user
16. n' or '#': number of tasks
17. 'K': end the task.
18. 'r': reset the priority.
References:
[1] the meaning of each parameter of TOP Command http://blog.linuxeye.com/139.html
[2] java Distributed Application Performance Tuning
[3] Unbelievable! 30 Linux TOP Command Examples With Screenshots http://linoxide.com/linux-command/linux-top-command-examples-screenshots/