Introduction
Top Command is one of the most popular performance monitoring tools. The top command is often used to monitor linux system conditions, such as cpu and memory usage. Shows the top command interaction interface:
The top page consists of two parts: the top part of the cursor displays information about the overall system performance, and the bottom part of the cursor displays information about each process.
Linux top command INTERFACE
First line
The content displayed in the first line is the same as that in the uptime command. [l] can display and hide this area:
- 16:48:03: current system time
- Up: How long has it taken to start the system?
- 9 users: the current nine users are online (who command to view the current number of online users)
- Load average: 0.85, 1.02, 1.00: CPU load information of the system for 1 minute, 5 minutes, and 15 minutes
Row 2
- Task
- 249 total: There are currently 249 tasks, that is, there are 249 Processes
- 1 runing: A process is running
- 247 sleeping: 247 processes sleep
- 0 stopped: Number of stopped Processes
- 1 zombie: number of dead processes
Row 3
- Cpu (s): displays the overall CPU information for this row
- 8.2% us: cpu usage percentage of user processes
- 10.0% sy: Percentage of cpu used by the kernel
- 0.0% ni: Percentage of cpu used by processes with changed priorities
- 81.1% id: Percentage of idle cpu
- 0.0% wa: Percentage of cpu occupied by I/O wait
- 0.0% hi: Percentage of hard interrupt cpu usage
- 0.0% si: Percentage of cpu used by Soft Interrupt
Row 4 & Row 5