- 论坛徽章:
- 0
|
系统很慢,使用top命令发现系统占用的CPU很高,有两个问题
1.为什么上面几行看到的CPU占用率为78%左右,不等于下面部分看到的个命令占用CPU的总和?
2.怎么降低CPU的占用率?
dsrdsr:/var/log# top
20:56:33 up 327 days, 6:08, 5 users, load average: 36.20, 35.80, 35.87
376 processes: 373 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 14.3% 0.0% 77.1% 0.0% 2.3% 0.3% 5.7%
cpu00 13.8% 0.0% 78.4% 0.0% 0.4% 0.0% 7.2%
cpu01 15.1% 0.0% 78.2% 0.0% 1.4% 0.0% 5.2%
cpu02 14.3% 0.0% 76.7% 0.0% 3.3% 0.5% 5.0%
cpu03 14.0% 0.0% 75.2% 0.0% 4.3% 0.9% 5.4%
Mem: 8199560k av, 6682764k used, 1516796k free, 0k shrd, 118744k buff
4412908k actv, 1308640k in_d, 124452k in_c
Swap: 12582904k av, 35636k used, 12547268k free 4426872k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
13050 root 19 0 1712 1712 896 R 10.4 0.0 3:33 2 top
31144 imagex 19 0 146M 146M 10840 D 9.4 1.8 8:03 3 java
29579 root 25 0 2488 2488 1880 R 7.2 0.0 128:25 1 rscd
20990 root 16 0 596 596 448 D 0.9 0.0 6:03 1 chown
25671 root 15 0 596 596 448 D 0.7 0.0 3:29 3 chown
14463 root 15 0 592 592 448 D 0.4 0.0 8:18 0 chown
1807 root 15 0 592 592 448 D 0.3 0.0 0:29 3 chown
31220 root 16 0 45084 44M 1564 S 0.2 0.5 588:35 0 java
29983 root 15 0 596 596 448 D 0.2 0.0 1:37 3 chown
21536 root 15 0 0 0 0 DW 0.1 0.0 1727m 3 vol_kio_process
1 root 15 0 300 300 236 S 0.0 0.0 4:29 3 init
2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0
3 root RT 0 0 0 0 SW 0.0 0.0 0:00 1 migration/1
4 root RT 0 0 0 0 SW 0.0 0.0 0:00 2 migration/2
5 root RT 0 0 0 0 SW 0.0 0.0 0:00 3 migration/3
6 root 15 0 0 0 0 SW 0.0 0.0 0:07 3 keventd
7 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
8 root 34 19 0 0 0 SWN 0.0 0.0 0:01 1 ksoftirqd/1
9 root 34 19 0 0 0 SWN 0.0 0.0 0:01 2 ksoftirqd/2
10 root 34 19 0 0 0 SWN 0.0 0.0 0:01 3 ksoftirqd/3
13 root 15 0 0 0 0 SW 0.0 0.0 0:46 3 bdflush
11 root 15 0 0 0 0 SW 0.0 0.0 16918m 0 kswapd
12 root 15 0 0 0 0 SW 0.0 0.0 335:53 3 kscand
14 root 15 0 0 0 0 SW 0.0 0.0 63:59 0 kupdated
15 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
22 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 scsi_eh_0
25 root 15 0 0 0 0 SW 0.0 0.0 0:00 2 qla2300_dpc1
26 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 qla2300_dpc2
27 root 18 0 0 0 0 SW 0.0 0.0 0:00 3 scsi_eh_1
28 root 18 0 0 0 0 SW 0.0 0.0 0:00 3 scsi_eh_2
30 root 17 0 0 0 0 SW 0.0 0.0 0:00 3 scsi_eh_3
31 root 17 0 0 0 0 SW 0.0 0.0 0:00 3 scsi_eh_4
34 root 15 0 0 0 0 SW 0.0 0.0 66:51 3 kjournald
90 root 15 0 0 0 0 SW 0.0 0.0 0:00 3 khubd
20974 root 15 0 0 0 0 SW 0.0 0.0 36929m 0 dmp_errd_loop
21538 root 15 0 0 0 0 SW 0.0 0.0 0:27 3 voltuned
21712 root 22 0 0 0 0 DW 0.0 0.0 0:00 1 vxiod
21713 root 22 0 0 0 0 DW 0.0 0.0 0:00 0 vxiod
21714 root 22 0 0 0 0 DW 0.0 0.0 0:00 1 vxiod
21715 root 22 0 0 0 0 DW 0.0 0.0 0:00 0 vxiod
21716 root 22 0 0 0 0 DW 0.0 0.0 0:00 1 vxiod
21717 root 22 0 0 0 0 DW 0.0 0.0 0:00 0 vxiod
21718 root 22 0 0 0 0 DW 0.0 0.0 0:00 1 vxiod
21719 root 22 0 0 0 0 DW 0.0 0.0 0:00 0 vxiod
21720 root 22 0 0 0 0 DW 0.0 0.0 0:00 1 vxiod
21721 root 22 0 0 0 0 DW 0.0 0.0 0:00 0 vxiod
21994 root 15 0 4500 4372 596 S 0.0 0.0 0:29 2 vxconfigd
23480 root 15 0 0 0 0 SW 0.0 0.0 0:31 2 dmp_restore_dae
28842 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald |
|