- 论坛徽章:
- 0
|
系统很慢,用top看到以下结果,有两个问题:\r\n\r\n1.为什么上面部门看到的CPU占用率为77%左右并不等于下面部分看到的个命令占用的CPU的总和,怎样才能找出其余部分CPU被谁占用?\r\n2.怎样才能优化降低CPU的使用率?\r\n\r\n\r\ndddd:/var/log# top\r\n 20:56:33 up 327 days, 6:08, 5 users, load average: 36.20, 35.80, 35.87\r\n376 processes: 373 sleeping, 3 running, 0 zombie, 0 stopped\r\nCPU states: cpu user nice system irq softirq iowait idle\r\n total 14.3% 0.0% 77.1% 0.0% 2.3% 0.3% 5.7%\r\n cpu00 13.8% 0.0% 78.4% 0.0% 0.4% 0.0% 7.2%\r\n cpu01 15.1% 0.0% 78.2% 0.0% 1.4% 0.0% 5.2%\r\n cpu02 14.3% 0.0% 76.7% 0.0% 3.3% 0.5% 5.0%\r\n cpu03 14.0% 0.0% 75.2% 0.0% 4.3% 0.9% 5.4%\r\nMem: 8199560k av, 6682764k used, 1516796k free, 0k shrd, 118744k buff\r\n 4412908k actv, 1308640k in_d, 124452k in_c\r\nSwap: 12582904k av, 35636k used, 12547268k free 4426872k cached\r\n\r\n PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND\r\n13050 root 19 0 1712 1712 896 R 10.4 0.0 3:33 2 top\r\n31144 imagex 19 0 146M 146M 10840 D 9.4 1.8 8:03 3 java\r\n29579 root 25 0 2488 2488 1880 R 7.2 0.0 128:25 1 rscd\r\n20990 root 16 0 596 596 448 D 0.9 0.0 6:03 1 chown\r\n25671 root 15 0 596 596 448 D 0.7 0.0 3:29 3 chown\r\n14463 root 15 0 592 592 448 D 0.4 0.0 8:18 0 chown\r\n 1807 root 15 0 592 592 448 D 0.3 0.0 0:29 3 chown\r\n31220 root 16 0 45084 44M 1564 S 0.2 0.5 588:35 0 java\r\n29983 root 15 0 596 596 448 D 0.2 0.0 1:37 3 chown\r\n21536 root 15 0 0 0 0 DW 0.1 0.0 1727m 3 vol_kio_process\r\n 1 root 15 0 300 300 236 S 0.0 0.0 4:29 3 init\r\n 2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0\r\n 3 root RT 0 0 0 0 SW 0.0 0.0 0:00 1 migration/1\r\n 4 root RT 0 0 0 0 SW 0.0 0.0 0:00 2 migration/2\r\n 5 root RT 0 0 0 0 SW 0.0 0.0 0:00 3 migration/3\r\n 6 root 15 0 0 0 0 SW 0.0 0.0 0:07 3 keventd\r\n 7 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0\r\n 8 root 34 19 0 0 0 SWN 0.0 0.0 0:01 1 ksoftirqd/1\r\n 9 root 34 19 0 0 0 SWN 0.0 0.0 0:01 2 ksoftirqd/2\r\n 10 root 34 19 0 0 0 SWN 0.0 0.0 0:01 3 ksoftirqd/3\r\n 13 root 15 0 0 0 0 SW 0.0 0.0 0:46 3 bdflush\r\n 11 root 15 0 0 0 0 SW 0.0 0.0 16918m 0 kswapd\r\n 12 root 15 0 0 0 0 SW 0.0 0.0 335:53 3 kscand\r\n 14 root 15 0 0 0 0 SW 0.0 0.0 63:59 0 kupdated\r\n 15 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd\r\n 22 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 scsi_eh_0\r\n 25 root 15 0 0 0 0 SW 0.0 0.0 0:00 2 qla2300_dpc1\r\n 26 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 qla2300_dpc2\r\n 27 root 18 0 0 0 0 SW 0.0 0.0 0:00 3 scsi_eh_1\r\n 28 root 18 0 0 0 0 SW 0.0 0.0 0:00 3 scsi_eh_2\r\n 30 root 17 0 0 0 0 SW 0.0 0.0 0:00 3 scsi_eh_3\r\n 31 root 17 0 0 0 0 SW 0.0 0.0 0:00 3 scsi_eh_4\r\n 34 root 15 0 0 0 0 SW 0.0 0.0 66:51 3 kjournald\r\n 90 root 15 0 0 0 0 SW 0.0 0.0 0:00 3 khubd\r\n20974 root 15 0 0 0 0 SW 0.0 0.0 36929m 0 dmp_errd_loop\r\n21538 root 15 0 0 0 0 SW 0.0 0.0 0:27 3 voltuned\r\n21712 root 22 0 0 0 0 DW 0.0 0.0 0:00 1 vxiod\r\n21713 root 22 0 0 0 0 DW 0.0 0.0 0:00 0 vxiod\r\n21714 root 22 0 0 0 0 DW 0.0 0.0 0:00 1 vxiod\r\n21715 root 22 0 0 0 0 DW 0.0 0.0 0:00 0 vxiod\r\n21716 root 22 0 0 0 0 DW 0.0 0.0 0:00 1 vxiod\r\n21717 root 22 0 0 0 0 DW 0.0 0.0 0:00 0 vxiod\r\n21718 root 22 0 0 0 0 DW 0.0 0.0 0:00 1 vxiod\r\n21719 root 22 0 0 0 0 DW 0.0 0.0 0:00 0 vxiod\r\n21720 root 22 0 0 0 0 DW 0.0 0.0 0:00 1 vxiod\r\n21721 root 22 0 0 0 0 DW 0.0 0.0 0:00 0 vxiod\r\n21994 root 15 0 4500 4372 596 S 0.0 0.0 0:29 2 vxconfigd\r\n23480 root 15 0 0 0 0 SW 0.0 0.0 0:31 2 dmp_restore_dae\r\n28842 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald |
|