Hello!
Found this forum via google and thought i give it a try....
I'm working on a company that uses Informix in a product they have developed. I'm very beginner level at databases but i have a problem... Hopefully some kind soul can point my beginner ass in the right direction
Optimizing the database is not usally needed for this product i have installed, since it optimizes it self according to the server hardware via a script for this "product"..
The problem is, i have been importing new data to this application for 2 days now.. And have been waiting and waiting since it takes very long time..
The server I'm running this "application" on is a quad core intel xeon machine (16 virtual cpu's) server is running with 16GB memory.. Operating system is SLES 10.
The problem is that when i check "top" i see just one process (oninit) using 100% CPU all the time (for several hours for one import). Couldnt Informix use several CPU's for the work? ...
I managed to find out how to get stats from informix. And here is some, i made a onstat -p and onstat -g glo ... Onstat -p is from a period of one minute and the other one is for a couple of minutes (see uptime down below)..
Can anyone see from this stats what config setting could be wrong? Or maybe something else? .. Just tell me if you need anything more to be able to see whats wrong... Why is only vp #4 doing all the job? :-/
Code:
xxx:/x # onstat -z
IBM Informix Dynamic Server Version 10.00.UC9 -- On-Line -- Up 08:50:03 -- 1179416 Kbytes
x:/x # onstat -p
IBM Informix Dynamic Server Version 10.00.UC9 -- On-Line -- Up 08:51:18 -- 1179416 Kbytes
Profile
dskreads pagreads bufreads %cached dskwrits pagwrits bufwrits %cached
11 11 59899655 100.00 2 32 1299 99.85
isamtot open start read write rewrite delete commit rollbk
17146 1622 2554 4891 15 87 0 152 0
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 75.05 0.02 0 0
bufwaits lokwaits lockreqs deadlks dltouts ckpwaits compress seqscans
9 0 3443 0 0 0 78 297
ixda-RA idx-RA da-RA RA-pgsused lchwaits
11 0 0 11 0
x:/x # onstat -g glo
IBM Informix Dynamic Server Version 10.00.UC9 -- On-Line -- Up 08:54:59 -- 1179416 Kbytes
MT global info:
sessions threads vps lngspins
36 60 22 0
sched calls thread switches yield 0 yield n yield forever
total: 540218 18068 523924 2958 137
per sec: 0 0 0 0 0
Virtual processor summary:
class vps usercpu syscpu total
cpu 15 294.05 0.09 294.14
aio 2 0.00 0.00 0.00
lio 1 0.00 0.00 0.00
pio 1 0.00 0.00 0.00
adm 1 0.00 0.00 0.00
soc 1 0.00 0.00 0.00
msc 1 0.00 0.00 0.00
total 22 294.05 0.09 294.14
Individual virtual processors:
vp pid class usercpu syscpu total
1 4339 cpu 0.13 0.04 0.17
2 5203 adm 0.00 0.00 0.00
3 5204 cpu 0.00 0.00 0.00
4 5212 cpu 293.89 0.05 293.94
5 5214 cpu 0.03 0.00 0.03
6 5215 cpu 0.00 0.00 0.00
7 5227 cpu 0.00 0.00 0.00
8 5261 cpu 0.00 0.00 0.00
9 5280 cpu 0.00 0.00 0.00
10 5330 cpu 0.00 0.00 0.00
11 5418 cpu 0.00 0.00 0.00
12 5475 cpu 0.00 0.00 0.00
13 5530 cpu 0.00 0.00 0.00
14 5588 cpu 0.00 0.00 0.00
15 5656 cpu 0.00 0.00 0.00
16 5662 cpu 0.00 0.00 0.00
17 5664 lio 0.00 0.00 0.00
18 5733 pio 0.00 0.00 0.00
19 5763 aio 0.00 0.00 0.00
20 5790 msc 0.00 0.00 0.00
21 5793 aio 0.00 0.00 0.00
22 5801 soc 0.00 0.00 0.00
tot 294.05 0.09 294.14