- 论坛徽章:
- 0
|
top 出现的奇怪的问题 请达人看看...小弟无法解决..
我在一台2路9核的服务器上面做数据迁移的导入动作.使用top来观察系统负载情况.
发现系统cpu使用率居然达到了CPU 9999.0 我一共才八个核心CPU top 的 %CPU是如何算出这个值的.请达人赐教..
运行环境..
CENTOS 5.3 X86 64位版本..
MYSQL5.1.39
[root@db-090922-165 ~]# mysql -V
mysql Ver 14.14 Distrib 5.1.39, for unknown-linux-gnu (x86_64) using readline 5.1
[root@db-090922-165 ~]# rpm -qa |grep -i mysql
MySQL-devel-community-5.1.39-0.rhel5
MySQL-shared-community-5.1.39-0.rhel5
MySQL-client-community-5.1.39-0.rhel5
MySQL-server-community-5.1.39-0.rhel5
[root@db-090922-165 ~]# ls |grep MySQL
MySQL-client-community-5.1.39-0.rhel5.x86_64.rpm
MySQL-devel-community-5.1.39-0.rhel5.x86_64.rpm
MySQL-server-community-5.1.39-0.rhel5.x86_64.rpm
MySQL-shared-community-5.1.39-0.rhel5.x86_64.rpm
[root@db-090922-165 ~]# uname -a
Linux db-090922-165 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@db-090922-165 ~]# cat /proc/version
Linux version 2.6.18-128.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Wed Jan 21 10:41:14 EST 2009
[root@db-090922-165 ~]# top
top - 12:20:08 up 6:59, 6 users, load average: 0.18, 0.05, 0.01
Tasks: 168 total, 1 running, 167 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, 0.1%sy, 0.0%ni, 99.4%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 4050968k total, 3744788k used, 306180k free, 192676k buffers
Swap: 2048248k total, 176k used, 2048072k free, 2308036k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12141 root 16 0 12732 1092 764 R 177.4 0.0 0:02.31 top
5100 mysql 15 0 5704m 947m 6028 S 19.7 23.9 838:06.34 mysqld
650 root 10 -5 0 0 0 S 5.9 0.0 4:50.96 usb-storage
3822 root 18 0 10224 740 632 S 3.9 0.0 2:34.50 hald-addon-stor
18 root 34 19 0 0 0 S 2.0 0.0 1:23.67 ksoftirqd/5
3811 root 34 19 12908 1252 1032 S 2.0 0.0 0:41.37 gam_server
3824 root 18 0 10224 740 632 S 2.0 0.0 1:30.75 hald-addon-stor
1 root 15 0 10344 708 596 S 0.0 0.0 4:19.22 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.39 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.04 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0.0 0.0 0:01.38 migration/1
6 root 34 19 0 0 0 S 0.0 0.0 0:00.26 ksoftirqd/1
7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
8 root RT -5 0 0 0 S 0.0 0.0 0:00.33 migration/2
9 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/2
10 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/2
11 root RT -5 0 0 0 S 0.0 0.0 0:00.39 migration/3
12 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/3
13 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/3
14 root RT -5 0 0 0 S 0.0 0.0 0:00.07 migration/4
15 root 34 19 0 0 0 S 0.0 0.0 0:00.26 ksoftirqd/4
16 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/4
17 root RT -5 0 0 0 S 0.0 0.0 0:00.07 migration/5
19 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/5
20 root RT -5 0 0 0 S 0.0 0.0 0:00.35 migration/6
21 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/6
22 root RT -5 0 0 0 S 0.0 0.0 0:00.06 watchdog/6
23 root RT -5 0 0 0 S 0.0 0.0 0:00.27 migration/7
24 root 34 19 0 0 0 S 0.0 0.0 0:00.03 ksoftirqd/7
25 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/7
26 root 10 -5 0 0 0 S 0.0 0.0 2:03.45 events/0
27 root 10 -5 0 0 0 S 0.0 0.0 0:50.90 events/1
28 root 10 -5 0 0 0 S 0.0 0.0 0:25.61 events/2
[root@db-090922-165 ~]#
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12141 root 16 0 12732 1092 764 R 177.4 0.0 0:02.31 top
5100 mysql 15 0 5704m 947m 6028 S 19.7 23.9 838:06.34 mysqld
这里cpu使用率很高...这个值计算有问题.. |
|