linux-top(查看各进程cpu用量等)

2019-07-13 08:36发布

Linux查看进程top 命令显示了当前正运行的进程以及关于它们的重要信息,包括它们的内存和 CPU 用量。 该列表既是真实时间的也是互动的。 要退出 top,按 [q] 键。
如:
wooya@wooya-pc:/work/MT7601u官方驱动/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913$ top top - 22:55:28 up 3 days, 4:52, 2 users, load average: 0.00, 0.01, 0.05 Tasks: 178 total, 1 running, 176 sleeping, 0 stopped, 1 zombie Cpu(s): 0.7%us, 0.7%sy, 0.0%ni, 98.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 1024700k total, 902424k used, 122276k free, 212604k buffers Swap: 1147896k total, 17000k used, 1130896k free, 244552k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1655 root 20 0 151m 88m 10m S 2 8.9 6:43.44 Xorg 3998 wooya 20 0 153m 16m 11m S 1 1.7 0:33.21 gnome-terminal 3 root 20 0 0 0 0 S 0 0.0 0:12.42 ksoftirqd/0 1677 root 20 0 15832 3092 2900 S 0 0.3 0:05.78 accounts-daemon 2812 wooya 20 0 135m 14m 9.8m S 0 1.4 0:18.41 gnome-settings- 2842 wooya 20 0 453m 51m 26m S 0 5.2 4:09.69 unity-2d-shell 2868 wooya 20 0 167m 12m 9544 S 0 1.3 6:10.35 vmtoolsd 3063 wooya 20 0 96888 11m 7092 S 0 1.1 0:08.32 unity-applicati 4703 root 20 0 0 0 0 S 0 0.0 0:00.46 kworker/0:2 7044 wooya 20 0 2856 1172 872 R 0 0.1 0:00.92 top 1 root 20 0 3652 1912 1264 S 0 0.2 0:01.18 init 2 root 20 0 0 0 0 S 0 0.0 0:00.05 kthreadd 5 root 20 0 0 0 0 S 0 0.0 0:04.51 kworker/u:0 6 root RT 0 0 0 0 S 0 0.0 0:00.23 migration/0 7 root RT 0 0 0 0 S 0 0.0 0:02.34 watchdog/0 8 root RT 0 0 0 0 S 0 0.0 0:01.00 migration/1 wooya@wooya-pc:/work/MT7601u官方驱动/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913$ q