![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I wrote a esql/c program, which read about 100,000 records from a plain data file one bye one while inserted(or updated) them into a local database. When the progress go to about 20,000 records, the program seems halt( ver very slow!), and the hard disk keeps flashing for about 2 hours. The sar -u reports: 17:47:16 %usr %sys %wio %idle (-u) 17:47:17 0 2 98 0 17:47:18 0 0 100 0 17:47:20 0 3 97 0 17:47:23 0 1 99 0 17:47:24 0 2 65 33 17:47:25 1 3 64 32 17:47:26 0 1 42 57 17:47:27 0 6 94 0 sar -d reports: 17:49:06 device %busy avque r+w/s blks/s avwait avserv (-d) 17:49:07 wd-0 95.05 1.08 830.69 6693.07 0.10 1.14 17:49:08 wd-0 97.03 1.08 837.62 6700.99 0.09 1.16 17:49:09 wd-0 99.01 1.00 790.10 6320.79 0.00 1.25 17:49:10 wd-0 100.00 1.25 280.20 2225.74 0.88 3.57 17:49:11 wd-0 98.02 1.01 343.56 2748.51 0.03 2.85 sar -r reports: 17:49:46 freemem freeswp availrmem availsmem (-r) 17:49:47 1245 224576 11548 23929 17:49:48 953 229240 11548 23929 17:49:49 1394 225128 11548 23929 17:49:50 1175 226896 11548 23929 17:49:51 1001 228248 11548 23929 17:49:52 840 229544 11548 23929 17:49:53 703 230664 11548 23929 17:49:54 1196 224192 11548 23929 My system is SCO OSR5 + Informix Online 7.x with 128M ram. The database is created w/o loging. Is any method here let me know what the Informix is doing? Thans in advance. -- steven (AT) lczmsoft (DOT) com sending to informix-list |
#3
| |||
| |||
|
|
I wrote a esql/c program, which read about 100,000 records from a plain data file one bye one while inserted(or updated) them into a local database. When the progress go to about 20,000 records, the program seems halt( ver very slow!), and the hard disk keeps flashing for about 2 hours. The sar -u reports: |
#4
| |||
| |||
|
|
I wrote a esql/c program, which read about 100,000 records from a plain data file one bye one while inserted(or updated) them into a local database. When the progress go to about 20,000 records, the program seems halt( ver very slow!), and the hard disk keeps flashing for about 2 hours. The sar -u reports: 17:47:16 %usr %sys %wio %idle (-u) 17:47:17 0 2 98 0 17:47:18 0 0 100 0 17:47:20 0 3 97 0 17:47:23 0 1 99 0 17:47:24 0 2 65 33 17:47:25 1 3 64 32 17:47:26 0 1 42 57 17:47:27 0 6 94 0 sar -d reports: 17:49:06 device %busy avque r+w/s blks/s avwait avserv (-d) 17:49:07 wd-0 95.05 1.08 830.69 6693.07 0.10 1.14 17:49:08 wd-0 97.03 1.08 837.62 6700.99 0.09 1.16 17:49:09 wd-0 99.01 1.00 790.10 6320.79 0.00 1.25 17:49:10 wd-0 100.00 1.25 280.20 2225.74 0.88 3.57 17:49:11 wd-0 98.02 1.01 343.56 2748.51 0.03 2.85 sar -r reports: 17:49:46 freemem freeswp availrmem availsmem (-r) 17:49:47 1245 224576 11548 23929 17:49:48 953 229240 11548 23929 17:49:49 1394 225128 11548 23929 17:49:50 1175 226896 11548 23929 17:49:51 1001 228248 11548 23929 17:49:52 840 229544 11548 23929 17:49:53 703 230664 11548 23929 17:49:54 1196 224192 11548 23929 My system is SCO OSR5 + Informix Online 7.x with 128M ram. The database is created w/o loging. Is any method here let me know what the Informix is doing? Thans in advance. -- steven (AT) lczmsoft (DOT) com |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Well, Since your wio percentage is so high, I suspect that your page flusher are rather busy. Do you have LRU Min set to zero? |
#7
| |||
| |||
|
|
Sess SQL Current Iso Lock SQL ISAM F.E. Id Stmt type Database Lvl Mode ERR ERR Vers 14 - - - Not Wait -349 0 7.22 |
#8
| |||
| |||
|
|
Looks like you have a programatic error. onstat -g ses 14 indicates: Sess SQL Current Iso Lock SQL ISAM F.E. Id Stmt type Database Lvl Mode ERR ERR Vers 14 - - - Not Wait -349 0 7.22 The sql error is -349 which means "database not open". This error occurred when the insert statement was processed. I think you need to review your code. Mark sending to informix-list |
![]() |
| Thread Tools | |
| Display Modes | |
| |