top
Parameters
Parameter |
Description |
Value |
---|---|---|
parameter | If you want to obtain details and usage guide of parameters, run the top --help command. | - |
Example
Show the program process information every 20 seconds.
Storage: minisystem> top -d 20 top - 22:20:45 up 4:19, 2 users, load average: 276.19, 276.13, 276.10 Tasks: 550 total, 1 running, 549 sleeping, 0 stopped, 0 zombie Cpu(s): 1.4%us, 3.2%sy, 0.0%ni, 93.5%id, 1.8%wa, 0.0%hi, 0.1%si, 0.0%st Mem: 560860k total, 403236k used, 157624k free, 156k buffers Swap: 0k total, 0k used, 0k free, 66760k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6005 root 20 0 12924 1460 812 R 4 0.3 0:00.03 top 3780 root 20 0 0 0 0 S 2 0.0 0:16.67 DEV_Routine_0 1 root 20 0 3744 608 516 S 0 0.1 0:03.25 init 2 root 20 0 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT 0 0 0 0 S 0 0.0 0:00.15 migration/0 4 root 20 0 0 0 0 S 0 0.0 0:05.42 ksoftirqd/0 5 root RT 0 0 0 0 S 0 0.0 0:00.06 watchdog/0 6 root RT 0 0 0 0 S 0 0.0 0:00.14 migration/1 7 root 20 0 0 0 0 S 0 0.0 0:03.72 ksoftirqd/1 8 root RT 0 0 0 0 S 0 0.0 0:00.10 watchdog/1 9 root 20 0 0 0 0 S 0 0.0 0:06.39 events/0 10 root 20 0 0 0 0 S 0 0.0 0:00.48 events/1 11 root 20 0 0 0 0 S 0 0.0 0:00.00 cpuset 12 root 20 0 0 0 0 S 0 0.0 0:00.00 khelper 13 root 20 0 0 0 0 S 0 0.0 0:00.59 netns
System Response
None.
Parameter |
Meaning |
---|---|
PID | Process ID. |
USER | User. |
PR | Priority. |
NI | Value of nice. A negative vales indicates a high priority and a positive value indicates a low priority. |
VIRT | Total size of the virtual memory used by processes. |
RES | Resident memory. |
SHR | Shared memory. |
S | Process status. D indicates the uninterrupted sleep state, R indicates the running state, S indicates the sleep state, T indicates the tracking/stopped state, and Z indicates the zombie process. |
%CPU | CPU usage between two times of updates. |
%MEM | Percentage of the physical memory used by processes. |
TIME+ | Total CPU time used by processes. The unit is 1/100 second. |
COMMAND | Command. |