low cpu usage,hihg load average

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,

I have a java game server app running on a 8 kernel suse linux.The cpu
usage and io usage is low, but the load average is high(from 4.0 to 13.0).

my questiones:
1、is correct that useing cpus * 70% to evaluate the load of server for
multithread app;
2、how can i find the reason rise the high load average?

The following is the stat info.


the top result:

top - 19:45:01 up 110 days, 2:25, 2 users, load average: 8.11, 8.75, 9.22
Tasks: 146 total, 1 running, 143 sleeping, 0 stopped, 2 zombie
Cpu(s): 14.7%us, 20.8%sy, 0.0%ni, 63.9%id, 0.0%wa, 0.0%hi, 0.1%si, 0.5%st
Mem: 7168144k total, 5679216k used, 1488928k free, 487824k buffers
Swap: 2104504k total, 68k used, 2104436k free, 2500808k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15745 root 22 0 2291m 1.1g 10m S 190 15.7 1009:33 java
15764 root 18 0 2125m 627m 10m S 93 9.0 295:07.57 java
3647 root 16 0 5656 1248 880 R 0 0.0 0:00.14 top
10415 root 16 0 52248 5748 1988 S 0 0.1 15:29.60 tnetd
1 root 16 0 784 304 256 S 0 0.0 0:40.59 init
2 root RT 0 0 0 0 S 0 0.0 1:11.72 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.01 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 1:11.74 migration/1
5 root 34 19 0 0 0 S 0 0.0 0:00.05 ksoftirqd/1
6 root RT 0 0 0 0 S 0 0.0 1:10.98 migration/2
7 root 34 19 0 0 0 S 0 0.0 0:00.02 ksoftirqd/2
8 root RT 0 0 0 0 S 0 0.0 1:10.34 migration/3
9 root 34 19 0 0 0 S 0 0.0 0:00.04 ksoftirqd/3
10 root RT 0 0 0 0 S 0 0.0 1:10.17 migration/4
11 root 34 19 0 0 0 S 0 0.0 0:00.02 ksoftirqd/4
12 root RT 0 0 0 0 S 0 0.0 1:09.94 migration/5
13 root 34 19 0 0 0 S 0 0.0 0:00.03 ksoftirqd/5
14 root RT 0 0 0 0 S 0 0.0 1:09.27 migration/6
15 root 34 19 0 0 0 S 0 0.0 0:00.04 ksoftirqd/6
16 root RT 0 0 0 0 S 0 0.0 1:07.70 migration/7
17 root 34 19 0 0 0 S 0 0.0 0:00.14 ksoftirqd/7
18 root 10 -5 0 0 0 S 0 0.0 0:00.76 events/0
19 root 10 -5 0 0 0 S 0 0.0 0:00.42 events/1
20 root 10 -5 0 0 0 S 0 0.0 0:00.42 events/2
21 root 10 -5 0 0 0 S 0 0.0 0:00.36 events/3
22 root 10 -5 0 0 0 S 0 0.0 0:00.43 events/4
23 root 10 -5 0 0 0 S 0 0.0 0:00.31 events/5
24 root 10 -5 0 0 0 S 0 0.0 0:00.32 events/6
25 root 10 -5 0 0 0 S 0 0.0 0:00.64 events/7
26 root 11 -5 0 0 0 S 0 0.0 0:00.00 khelper
27 root 10 -5 0 0 0 S 0 0.0 0:00.00 kthread
28 root 11 -5 0 0 0 S 0 0.0 0:00.00 xenwatch
29 root 10 -5 0 0 0 S 0 0.0 0:00.00 xenbus
43 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/0
44 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1
45 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/2
46 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/3
47 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/4
48 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/5

the vmstat result:

procs -----------memory---------- ---swap-- -----io---- -system--
-----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st
6 0 68 1423620 487824 2501068 0 0 0 3 0 0 2 3 94 0 0
6 0 68 1421868 487824 2501068 0 0 0 0 31245 60892 16 19 64 0 0
6 0 68 1423836 487824 2501068 0 0 0 0 28340 52949 15 20 65 0 0
6 0 68 1421604 487824 2501068 0 0 0 28 23887 41099 14 21 64 0 0
8 0 68 1421108 487824 2501068 0 0 0 0 26606 56529 15 21 64 0 0
7 0 68 1422084 487824 2501068 0 0 0 0 28572 54739 15 21 64 0 0
6 0 68 1405856 487824 2501068 0 0 0 0 23280 49038 16 21 63 0 0
8 0 68 1405608 487824 2501068 0 0 0 0 25781 50413 16 21 63 0 1
13 0 68 1400208 487824 2501068 0 0 0 0 23120 44107 16 24 60 0 1
7 0 68 1401240 487824 2501068 0 0 0 0 22262 43509 17 21 62 0 1

the iostat result

avg-cpu: %user %nice %system %iowait %steal %idle
2.35 0.00 2.79 0.17 0.42 94.28

Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz
avgqu-sz await svctm %util
sda 0.00 1.40 0.00 2.06 0.07 29.62 0.03 14.81 14.43 0.03 13.67 5.08 1.05
sda4 0.00 1.43 0.00 1.29 0.05 22.73 0.02 11.37 17.65 0.02 12.15 4.84 0.62

avg-cpu: %user %nice %system %iowait %steal %idle
20.38 0.00 25.62 0.00 0.50 54.12

Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz
avgqu-sz await svctm %util
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
sda4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

avg-cpu: %user %nice %system %iowait %steal %idle
19.75 0.00 25.62 0.00 0.38 54.25

Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz
avgqu-sz await svctm %util
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
sda4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

avg-cpu: %user %nice %system %iowait %steal %idle
19.18 0.00 24.75 0.00 0.25 55.07

Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz
avgqu-sz await svctm %util
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
sda4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

avg-cpu: %user %nice %system %iowait %steal %idle
17.00 0.00 26.38 2.38 0.38 54.37

Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz
avgqu-sz await svctm %util
sda 0.00 10.00 0.00 31.00 0.00 336.00 0.00 168.00 10.84 0.79 25.42 8.52
26.40
sda4 0.00 63.00 0.00 46.00 0.00 880.00 0.00 440.00 19.13 1.11 24.17 2.78
12.80

avg-cpu: %user %nice %system %iowait %steal %idle
15.38 0.00 22.62 0.25 0.38 61.62

Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz
avgqu-sz await svctm %util
sda 0.00 7.00 0.00 7.00 0.00 120.00 0.00 60.00 17.14 0.05 6.86 6.86 4.80
sda4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00


--
To unsubscribe from this list: send the line "unsubscribe linux-x86_64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ia64]     [Linux Kernel]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux Hams]
  Powered by Linux