top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器。下面详细介绍它的使用方法。top - 09:15:07 up 3:13, 4 users, load average: 0.03, 0.21, 1.17
Tasks: 229 total, 2 running, 227 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.4% us, 0.5% sy, 0.0% ni, 89.5% id, 9.6% wa, 0.0% hi, 0.0% si
Mem: 4137540k total, 2029316k used, 2108224k free, 43688k buffers
Swap: 2031608k total, 0k used, 2031608k free, 1747712k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4009 root -6 0 984m 14m 13m S 18 0.4 0:47.72 IFRecv
3996 root -6 0 994m 413m 413m S 6 10.2 2:10.54 IFRecv