- 论坛徽章:
- 0
|
在linux下用什么命令监测cpu使用率?
[quote]原帖由 "feming"]TOP 命令[/quote 发表:
我的机器只有两个cpu我用top命令显示如下:
[root@dell2650a resin]# top
1:01pm up 25 days, 22:43, 8 users, load average: 0.19, 1.12, 1.61
112 processes: 111 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 0.0% user, 0.1% system, 0.0% nice, 99.3% idle
CPU1 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
CPU2 states: 0.0% user, 0.1% system, 0.0% nice, 99.3% idle
CPU3 states: 0.0% user, 0.1% system, 0.0% nice, 99.3% idle
Mem: 2058860K av, 1298928K used, 759932K free, 48K shrd, 209112K buff
Swap: 2040244K av, 0K used, 2040244K free 881460K cached
2684 resin 15 0 1088 1088 832 S 0.2 0.0 0:16 top
3307 resin 15 0 1092 1092 832 S 0.2 0.0 0:02 top
3352 root 15 0 1088 1088 832 R 0.2 0.0 0:01 top
1 root 15 0 512 512 444 S 0.0 0.0 0:04 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
3 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
4 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
5 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
6 root 34 19 0 0 0 SWN 0.0 0.0 0:02 ksoftirqd_CPU0
7 root 34 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU1
8 root 34 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU2
9 root 34 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU3
怎么会有4个cpu呀!我不明白请大家指点?谢谢! |
|