免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 5773 | 回复: 28

[性能调优] to 老农:各位老大帮忙分析一下系统性能 RS 6000 IBM M80 [复制链接]

论坛徽章:
0
发表于 2003-09-10 14:58 |显示全部楼层
RS 6000 mem 8G  4 CPU 最大用户数是350
运行机_run>;iostat 2 3

tty: tin tout avg-cpu: % user % sys % idle % iowait
0.1 150.5 22.0 3.3 73.7 1.1
" Disk history since boot not available. "


tty: tin tout avg-cpu: % user % sys % idle % iowait
0.0 106.2 84.0 4.9 10.8 0.3

Disks: % tm_act Kbps tps Kb_read Kb_wrtn
hdisk0 3.3 34.1 7.1 0 72
hdisk1 0.0 0.0 0.0 0 0
hdisk7 34.6 2070.1 77.7 4300 68
hdisk3 50.7 3135.5 113.3 6616 0
hdisk10 18.5 2426.5 61.1 5052 68
hdisk6 0.0 0.0 0.0 0 0
hdisk11 0.0 0.0 0.0 0 0
hdisk9 82.0 2866.4 124.2 6008 40
hdisk4 93.8 4746.9 166.8 10016 0
hdisk8 91.5 4496.7 164.9 9488 0
hdisk5 83.4 3378.2 144.1 7088 40
cd0 0.0 0.0 0.0 0 0

tty: tin tout avg-cpu: % user % sys % idle % iowait
tty: tin tout avg-cpu: % user % sys % idle % iowait
0.0 109.7 81.9 3.7 14.3 0.2

Disks: % tm_act Kbps tps Kb_read Kb_wrtn
hdisk0 2.0 7.8 2.0 0 16
hdisk1 0.0 0.0 0.0 0 0
hdisk7 54.4 3056.3 114.1 6240 0
hdisk3 52.9 3185.6 108.7 6504 0
hdisk10 0.0 0.0 0.0 0 0
hdisk6 0.0 0.0 0.0 0 0
hdisk11 0.0 0.0 0.0 0 0
hdisk9 93.6 3708.7 159.2 7556 16
hdisk4 96.5 4655.0 165.6 9504 0
hdisk8 96.5 4384.7 161.6 8952 0
hdisk5 96.0 3675.4 161.6 7488 16
cd0 0.0 0.0 0.0 0 0

tty: tin tout avg-cpu: % user % sys % idle % iowait
0.0 493.7 82.5 5.8 10.6 1.0

Disks: % tm_act Kbps tps Kb_read Kb_wrtn
hdisk0 7.5 53.9 10.5 0 108
hdisk1 0.0 0.0 0.0 0 0
hdisk7 56.9 2993.0 116.3 5928 68
hdisk3 48.9 3234.6 116.3 6480 0
hdisk10 1.5 39.9 2.5 12 68
hdisk6 0.0 0.0 0.0 0 0
hdisk11 0.0 0.0 0.0 0 0
hdisk9 99.3 3827.6 170.7 7636 32
hdisk4 99.8 4386.7 159.2 8788 0
hdisk8 97.3 4710.1 173.7 9436 0
hdisk5 99.8 3797.7 167.2 7576 32
cd0 0.0 0.0 0.0 0 0
运行机_run>;
vmstat: 0551-129 knlist failed.
运行机_run>;onstat -g glo

Informix Dynamic Server Version 7.31.UD1 -- On-Line -- Up 01:05:32 -- 1545296
Kbytes

MT global info:
sessions threads vps lngspins
45 85 14 0

sched calls thread switches yield 0 yield n yield forever
total: 29432690 14684620 18453729 1780582 2787074
per sec: 8 8 0 0 4

Virtual processor summary:
class vps usercpu syscpu total
cpu 5 16610.24 228.39 16838.63
aio 5 0.07 0.20 0.27
lio 1 0.00 0.05 0.05
pio 1 0.01 0.03 0.04
adm 1 0.12 0.10 0.22
msc 1 2.22 0.89 3.11
total 14 16612.66 229.66 16842.32

Individual virtual processors:
vp pid class usercpu syscpu total
1 109620 cpu 3332.89 47.78 3380.67
2 104070 adm 0.12 0.10 0.22
3 46212 cpu 3305.03 45.61 3350.64
4 110736 cpu 3321.33 45.85 3367.18
5 95780 cpu 3328.95 44.49 3373.44
6 111264 cpu 3322.04 44.66 3366.70
7 109198 lio 0.00 0.05 0.05
8 108042 pio 0.01 0.03 0.04
9 107934 aio 0.00 0.05 0.05
10 107424 msc 2.22 0.89 3.11
11 110872 aio 0.02 0.02 0.04
12 97984 aio 0.01 0.03 0.04
13 110176 aio 0.01 0.05 0.06
14 96166 aio 0.03 0.05 0.08
tot 16612.66 229.66 16842.32

运行机_run>;
运行机_run>;onstat -g sql

Informix Dynamic Server Version 7.31.UD1 -- On-Line -- Up 01:06:08 -- 15452
Kbytes

Sess SQL Current Iso Lock SQL ISAM F.E.
Id Stmt type Database Lvl Mode ERR ERR Vers
10273 - - - Wait 3 0 0 9.25
10271 - - - Not Wait 0 0 9.25
10270 SELECT rundb CR Not Wait 0 0 9.25
10264 SELECT rundb CR Not Wait 0 0 9.25
10263 - - - Not Wait 0 0 9.25
10194 SELECT rundb CR Not Wait 0 0 9.25
10077 SELECT rundb CR Not Wait 0 0 9.25
10074 SELECT rundb CR Not Wait 0 0 9.25
10072 - - - Not Wait 0 0 9.25
10066 UPDATE rundb CR Not Wait 0 0 9.25
9865 SELECT rundb CR Not Wait 0 0 9.25
9826 SELECT rundb CR Not Wait 0 0 9.25
9784 SELECT rundb CR Not Wait 0 0 9.25
9736 SELECT rundb CR Not Wait 0 0 9.25
9632 SELECT rundb CR Not Wait 0 0 9.25
9386 UPDATE rundb CR Not Wait 0 0 9.25
9298 SELECT rundb CR Not Wait 0 0 9.25
9041 SELECT rundb CR Not Wait 0 0 9.25
8839 SELECT rundb CR Not Wait 0 0 9.25
8701 SELECT rundb CR Not Wait 0 0 9.25
8335 SELECT rundb CR Not Wait 0 0 9.25
8334 SELECT rundb CR Not Wait 0 0 9.25
8107 SELECT rundb CR Not Wait 0 0 9.25
8006 SELECT rundb CR Not Wait 0 0 9.25
7718 SELECT rundb CR Not Wait 0 0 9.25
7691 SELECT rundb CR Not Wait 0 0 9.25
7620 SELECT rundb CR Not Wait 0 0 9.25
7490 SELECT rundb CR Not Wait 0 0 9.25
6913 SELECT rundb CR Not Wait 0 0 9.25
6364 SELECT rundb CR Not Wait 0 0 9.25
1851 SELECT rundb CR Not Wait 0 0 9.25
1462 SELECT rundb CR Not Wait 0 0 9.25
60 - rundb CR Wait 3 0 0 9.25
58 - rundb CR Wait 3 0 0 9.25
57 - rundb CR Wait 3 0 0 9.25
56 - rundb CR Wait 3 0 0 9.25
52 - rundb CR Wait 3 0 0 9.25
46 - rundb CR Wait 3 0 0 9.25
38 - rundb CR Wait 3 0 0 9.25
31 - rundb CR Wait 3 0 0 9.25

运行机_run>;
运行机_run>;onstat -g seg

Informix Dynamic Server Version 7.31.UD1 -- On-Line -- Up 01:06:33 -- 1545296
Kbytes

Segment Summary:
id key addr size ovhd class blkused blkfree
87293967 1381386241 30000000 1320730624 39344 R 161217 5
123600920 1381386242 80000000 256000000 4512 V 2468 28782
69206037 1381386243 90000000 1130496 624 M 136 2
109445139 1381386244 a0000000 1130496 624 M 131 7
41680918 1381386245 b0000000 1130496 624 M 131 7
57933840 1381386246 c0000000 1130496 624 M 131 7
57933838 1381386247 e0000000 1130496 624 M 131 7
Total: - - 1582383104 - - 164345 28817

(* segment locked in memory)

运行机_run>;
运行机_run>;onstat -g ses

Informix Dynamic Server Version 7.31.UD1 -- On-Line -- Up 01:06:50 -- 154529
Kbytes

session #RSAM total used
id user tty pid hostname threads memory memory
10394 informix - 0 - 0 8192 5288
10393 informix - 0 - 0 8192 5288
10392 bankrun - 61952 czxh1 1 57344 32844
10391 informix - 0 - 0 8192 5288
10390 bankrun - 94268 czxh1 1 57344 32544
10389 informix - 0 - 0 8192 5288
10388 bankrun - 103812 czxh1 1 57344 32976
10387 informix - 0 - 0 8192 5288
10386 bankrun - 106368 czxh1 1 57344 31856
10385 bankrun - 103666 czxh1 1 49152 29928
10384 bankrun - 100612 czxh1 1 49152 30620
10383 bankrun - 109960 czxh1 1 49152 30892
10382 bankrun - 89754 czxh1 1 57344 31816
10381 bankrun - 67670 czxh1 1 57344 32828
10379 bankrun - 68976 czxh1 1 57344 50200
10378 bankrun - 94012 czxh1 1 57344 34380
10376 bankrun - 99434 czxh1 1 49152 30768
10353 bankrun - 98582 czxh1 1 98304 75588
10351 bankrun - 93930 czxh1 1 65536 61328
10320 bankrun - 100508 czxh1 1 81920 71700
10295 bankrun - 86924 czxh1 1 57344 51192
10270 bankrun - 81106 czxh1 1 57344 54448
10194 bankrun - 100214 czxh1 1 65536 60708
10077 bankrun - 99260 czxh1 1 65536 59344
10074 bankrun - 100908 czxh1 1 57344 54472
10066 bankrun - 102798 czxh1 1 57344 44180
9826 bankrun - 101974 czxh1 1 49152 43960
9632 bankrun - 60724 czxh1 1 57344 54352
9386 bankrun - 97454 czxh1 1 73728 69380
9298 bankrun - 104398 czxh1 1 57344 54376
9041 bankrun - 98988 czxh1 1 57344 54376
8839 bankrun - 66590 czxh1 1 57344 54376
8701 bankrun - 75392 czxh1 1 57344 54352
8335 bankrun - 108712 czxh1 1 57344 54472
8334 bankrun - 104968 czxh1 1 57344 50100
8107 bankrun - 60490 czxh1 1 57344 54376
8006 bankrun - 107236 czxh1 1 57344 54376
7620 bankrun - 105894 czxh1 1 81920 73484
7490 bankrun - 90278 czxh1 1 57344 50132
6913 bankrun - 90552 czxh1 1 114688 90376
6364 bankrun - 34666 czxh1 1 114688 90360
1851 bankrun - 103326 czxh1 1 114688 90568
1462 bankrun - 95586 czxh1 1 114688 73368
60 bankrun - 75606 czxh1 1 73728 38116
58 bankrun - 89576 czxh1 1 73728 38020
57 bankrun - 91018 czxh1 1 65536 37372
56 bankrun - 104560 czxh1 1 65536 38192
52 bankrun - 86178 czxh1 1 65536 37508
46 bankrun - 102290 czxh1 1 73728 38100
38 bankrun - 105350 czxh1 1 65536 37292
31 bankrun - 109348 czxh1 1 73728 38972
21 informix - 0 - 0 8192 5288
19 informix - 0 - 0 16384 13012
18 informix - 0 - 0 8192 5288
16 informix - 0 - 0 16384 13012
15 informix - 0 - 0 8192 5288
13 informix - 0 - 0 16384 13012
12 informix - 0 - 0 8192 5288
10 informix - 0 - 0 16384 13012
9 informix - 0 - 0 8192 5288
7 informix - 0 - 0 16384 13012
6 informix - 0 - 0 8192 5856
5 informix - 0 - 0 8192 5856
4 informix - 0 - 0 8192 5856
3 informix - 0 - 0 8192 5856
2 informix - 0 - 0 8192 5288

运行机_run>;
运行机_run>;onstat -g ioq

Informix Dynamic Server Version 7.31.UD1 -- On-Line -- Up 01:07:10 -- 1545296
Kbytes

AIO I/O queues:
q name/id len maxlen totalops dskread dskwrite dskcopy
kio 0 0 16 2308494 2299502 8992 0
kio 1 0 16 2250389 2242136 8253 0
kio 2 0 16 2237892 2226220 11672 0
kio 3 0 16 2243817 2233045 10772 0
kio 4 0 16 2238960 2229467 9493 0
adt 0 0 0 0 0 0 0
msc 0 0 3 10395 0 0 0
aio 0 0 4 66 12 10 0
pio 0 0 0 0 0 0 0
lio 0 0 0 0 0 0 0
gfd 3 0 0 0 0 0 0
gfd 4 0 0 0 0 0 0
gfd 5 0 0 0 0 0 0
gfd 6 0 0 0 0 0 0
gfd 7 0 0 0 0 0 0
gfd 8 0 0 0 0 0 0
gfd 9 0 0 0 0 0 0
gfd 10 0 0 0 0 0 0
gfd 11 0 0 0 0 0 0
gfd 12 0 0 0 0 0 0
gfd 13 0 0 0 0 0 0
gfd 14 0 0 0 0 0 0
gfd 15 0 0 0 0 0 0
gfd 16 0 0 0 0 0 0
gfd 17 0 0 0 0 0 0

运行机_run>;
运行机_run>;onstat -p

Informix Dynamic Server Version 7.31.UD1 -- On-Line -- Up 01:08:42 -- 1545296
Kbytes

Profile
dskreads pagreads bufreads %cached dskwrits pagwrits bufwrits %cached
11644896 13807334 298839856 96.10 51154 68370 246437 79.24

isamtot open start read write rewrite delete commit rollbk
10206592 326482 1052002 5531207 67117 44864 843 13824 224

gp_read gp_write gp_rewrt gp_del gp_alloc gp_free gp_curs
0 0 0 0 0 0 0

ovlock ovuserthread ovbuff usercpu syscpu numckpts flushes
0 0 0 17539.36 244.21 14 28

bufwaits lokwaits lockreqs deadlks dltouts ckpwaits compress seqscans
1858793 49 3315985181 0 0 323 4323 19720

ixda-RA idx-RA da-RA RA-pgsused lchwaits
1066472 1954 10306776 11373187 2740535

论坛徽章:
0
发表于 2003-09-14 13:47 |显示全部楼层

to 老农:各位老大帮忙分析一下系统性能 RS 6000 IBM M80

help?

论坛徽章:
0
发表于 2003-09-14 14:44 |显示全部楼层

to 老农:各位老大帮忙分析一下系统性能 RS 6000 IBM M80

很容易就看出你的hdisk4、5、8、9是严重的瓶颈。
你怎么不说一下你的配置情况呢?

vmstat 3 3的显示?
ps aux |head的显示?

论坛徽章:
0
发表于 2003-09-14 20:05 |显示全部楼层

to 老农:各位老大帮忙分析一下系统性能 RS 6000 IBM M80

up

论坛徽章:
0
发表于 2003-09-14 20:09 |显示全部楼层

to 老农:各位老大帮忙分析一下系统性能 RS 6000 IBM M80

r b avm fre re pi po fr sr cy in sy cs us sy id wa
2 2 420491 126 0 0 0 342 400 0 1138 6573 5728 33 3 65 0
2 2 420491 125 0 0 0 342 401 0 1214 6737 5851 31 1 68 0
2 2 420491 127 0 0 0 337 396 0 1093 6301 5638 30 4 66 0
2 2 420491 126 0 0 0 342 372 0 1078 6319 5576 32 1 67 0
2 2 420491 128 0 0 0 333 372 0 1050 6336 5671 31 2 68 0
2 2 420491 126 0 0 0 333 374 0 1071 6381 5697 31 1 68 0
1 2 420491 122 0 0 0 337 402 0 1080 6406 5732 32 2 66 0
2 2 420491 125 0 0 0 333 393 0 1092 6416 5594 31 4 64 0
2 2 420491 128 0 0 0 333 372 0 1048 6288 5610 31 1 68 0
2 2 420491 128 0 0 0 337 397 0 1051 6268 5576 30 2 68 0
2 2 420491 120 0 0 0 328 374 0 1079 6447 5753 33 1 66 0
2 2 420491 122 0 0 0 342 375 0 1414 7310 6217 31 2 67 0
2 2 420491 124 0 0 0 328 362 0 1373 7050 6059 30 4 66 0
2 2 420491 121 0 0 0 328 366 0 1050 6322 5716 32 2 66 0
2 2 420491 127 0 0 0 342 367 0 930 6125 5638 31 1 68 0
物理内存6G交换区为8G。
这是做dbexport 时的vmstat , free 再124左右30:00分钟后,备份失败.
    CPUtime limit exceeded     
请老农哥指点一下,hdisk 瓶颈如何解决.

论坛徽章:
0
发表于 2003-09-15 09:45 |显示全部楼层

to 老农:各位老大帮忙分析一下系统性能 RS 6000 IBM M80

你的onstat -d呢?硬盘有多少?怎么分配的?是不是hdisk4,5,8,9上是chunk空间?chunk是怎么安排的?有没有做raid,或者镜像?
   有了这些信息才能判断。

论坛徽章:
0
发表于 2003-09-15 11:40 |显示全部楼层

to 老农:各位老大帮忙分析一下系统性能 RS 6000 IBM M80

系统很忙,感觉配置不太合理。

因为dbexport时要锁库,所以vmstat应该是在非生产高峰时期的输出,意义不大。

首先cpu紧张,启动一个小时,每个cpuvps消耗3300多秒,高达91%。4颗cpu,配置了5个cpuvps,不太合理。

32位informix,内存设置太大,内存段已经占用11个段,数据库处于宕的边缘。

iostat显示i/o繁忙,看看onstat -g iov和onstat -g iof输出。

论坛徽章:
0
发表于 2003-09-16 08:51 |显示全部楼层

to 老农:各位老大帮忙分析一下系统性能 RS 6000 IBM M80

cpu 是6个
MULTIPROCESSOR  1               # 0 for single-processor, 1 for multi-processor
NUMCPUVPS       5            # Number of user (cpu) vps
SINGLE_CPU_VP   0               # If non-zero, limit number of cpu vps to one

NOAGE           1               # Process aging
AFF_SPROC       0               # Affinity start processor
AFF_NPROCS      0               # Affinity number of processors

论坛徽章:
0
发表于 2003-09-16 17:10 |显示全部楼层

to 老农:各位老大帮忙分析一下系统性能 RS 6000 IBM M80

这是在业务高峰时的
onstat -i iov
Informix Dynamic Server Version 7.31.UD1    -- On-Line -- Up 00:26:51 -- 1545296 Kbytes

AIO I/O vps:
class/vp s  io/s totalops  dskread dskwrite  dskcopy  wakeups  io/wup  errors
  kio  0 s  97.5   157125   152202     4923        0   302655   0.5       0
  kio  1 i 112.5   181187   176292     4895        0   344481   0.5       0
  kio  2 s  83.9   135243   129017     6226        0   262018   0.5       0
  kio  3 s 131.4   211647   207135     4512        0   396493   0.5       0
  kio  4 s 125.5   202185   195859     6326        0   380874   0.5       0
  msc  0 i   9.9    16008        0        0        0    15758   1.0       0
  aio  0 i   0.0       30        0        0        0       30   1.0       0
  aio  1 i   0.0       20        6        4        0       20   1.0       0
  aio  2 i   0.0       11        5        4        0       11   1.0       0
  aio  3 i   0.0        3        1        1        0        2   1.5       0
  aio  4 i   0.0        2        0        1        0        3   0.7       0
  pio  0 i   0.0        0        0        0        0        1   0.0       0
  lio  0 i   0.0        0        0        0        0        1   0.0       0

onstat -i iof
Informix Dynamic Server Version 7.31.UD1    -- On-Line -- Up 00:26:45 -- 1545296 Kbytes

AIO global files:
gfd pathname         totalops  dskread dskwrite  io/s
  3 rootdbs               170      125       45   0.1
  4 logdbs                  2        2        0   0.0
  5 bankdbs             47504    45076     2428  29.6
  6 bankdbs1           256418   254004     2414 159.8
  7 bankdbs2            78270    78018      252  48.8
  8 bankdbs3            68767    68060      707  42.8
  9 bankdbs4           135664   133401     2263  84.5
10 bankdbs5           116205   115711      494  72.4
11 tmpdbs                283      217       66   0.2
12 phydbs               1275      151     1124   0.8
13 logdbs1             11652      431    11221   7.3
14 bankdbs6            70272    68856     1416  43.8
15 bankdbs7            96929    92533     4396  60.4
16 bankdbs8                1        1        0   0.0
17 bankdbs9                1        1        0   0.0
onstat -d


Informix Dynamic Server Version 7.31.UD1    -- On-Line -- Up 00:27:00 -- 1545296 Kbytes

Dbspaces
address  number   flags    fchunk   nchunks  flags    owner    name
8005213c 1        1        1        1        N        informix rootdbs
80053400 2        1        2        2        N        informix logdbs
800534bc 3        1        3        10       N        informix easydbs
80053578 4        2001     9        1        N T      informix tmpdbs
80053634 5        1        10       1        N        informix phydbs
5 active, 2047 maximum

Chunks
address  chk/dbs offset   size     free     bpages   flags pathname
800521f8 1   1   0        500000   498759            PO-   /home/informix/rootdbs
80052670 2   2   0        500000   12447             PO-   /home/informix/logdbs
80052768 3   3   0        500000   203               PO-   /home/informix/bankdbs
80052860 4   3   0        500000   199               PO-   /home/informix/bankdbs1
80052958 5   3   0        500000   27                PO-   /home/informix/bankdbs2
80052a50 6   3   0        500000   104               PO-   /home/informix/bankdbs3
80052b48 7   3   250      500000   103               PO-   /home/informix/bankdbs4
80052c40 8   3   0        500000   53                PO-   /home/informix/bankdbs5
80052d38 9   4   0        500000   499947            PO-   /home/informix/tmpdbs
80052e30 10  5   250      175000   24947             PO-   /home/informix/phydbs
80052f28 11  2   250      499750   87247             PO-   /home/informix/logdbs1
80053020 12  3   250      499750   175               PO-   /home/informix/bankdbs6
80053118 13  3   250      499750   107182            PO-   /home/informix/bankdbs7
80053210 14  3   250      499750   499747            PO-   /home/informix/bankdbs8
80053308 15  3   250      499750   499747            PO-   /home/informix/bankdbs9
15 active, 2047 maximum

vmstat  3 5
运行机_run>;vmstat 3 5
kthr     memory             page              faults        cpu
----- ----------- ------------------------ ------------ -----------
r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa
3  2 421101 45129   0   0   0   3    4   0 1139 2039 1253 23  3 73  1
3  2 421423 44746   0   0   0   0    0   0 1836 57901 5464 30  9 60  0
2  2 421202 44997   0   0   0   0    0   0 1669 54607 5148 34  8 58  0
2  2 421202 45011   0   0   0   0    0   0 1408 49628 4317 35  9 55  1
2  2 420955 45297   0   0   0   0    0   0 1376 41731 4286 22  7 70  0

论坛徽章:
0
发表于 2003-09-17 09:14 |显示全部楼层

to 老农:各位老大帮忙分析一下系统性能 RS 6000 IBM M80

我被这系统都搞得的头都大了,业务高峰时infromix 数据库总是宕机,数据量有7G,单表最大为3G,dbexport 时又报 cputime  limit .
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP