- 论坛徽章:
- 0
|
各位高手朋友请留步,帮小弟解决一个问题吧。
数据库系统为INFORMIX 7.31UD6W5,OS为SOLARIS5.8,机型为SUN V440,所做操作为数据导入。
要导入的数据大约有三四百万条,问题表现为一个检查点的持续时间特别长,甚至达到了几百秒。而且导入数据后数据库奇慢无比,让人无法忍受!
以下是onconfig配置文件里的一些主要的参数项的设置情况:
# Physical Log Configuration
PHYSDBS phydbs # Location (dbspace) of physical log
PHYSFILE 500000 # Physical log file size (Kbytes)
# Logical Log Configuration
LOGFILES 10 # Number of logical log files
LOGSIZE 10000 # Logical log size (Kbytes)
# System Configuration
MULTIPROCESSOR 1 # 0 for single-processor, 1 for multi-processor
NUMCPUVPS 1 # Number of user (cpu) vps
SINGLE_CPU_VP 1 # If non-zero, limit number of cpu vps to one
# Shared Memory Parameters
LOCKS 500000 # Maximum number of locks
BUFFERS 100000 # Maximum number of shared buffers
NUMAIOVPS 30 # Number of IO vps
PHYSBUFF 64 # Physical log buffer size (Kbytes)
LOGBUFF 64 # Logical log buffer size (Kbytes)
LOGSMAX 20 # Maximum number of logical log files
CLEANERS 8 # Number of buffer cleaner processes
SHMBASE 0xa000000 # Shared memory base address
SHMVIRTSIZE 32000 # initial virtual shared memory segment size
SHMADD 32000 # Size of new shared memory segments (Kbytes)
SHMTOTAL 0 # Total shared memory (Kbytes). 0=>unlimited
CKPTINTVL 86400 # Check point interval (in sec)
LRUS 32 # Number of LRU queues
LRU_MAX_DIRTY 2 # LRU percent dirty begin cleaning limit
LRU_MIN_DIRTY 1 # LRU percent dirty end cleaning limit
LTXHWM 50 # Long transaction high water mark percentage
LTXEHWM 60 # Long transaction high water mark (exclusive)
TXTIMEOUT 0x12c # Transaction timeout (in sec)
STACKSIZE 32 # Stack size (Kbytes)
下面是我摘的一段online.log,是三个检查点相继执行的这段时间的日志:
15:42:11 Logical Log 1084 Complete.
15:42:12 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1084 Complete." "Logical Log 1084 Complete."
15:42:51 Logical Log 1085 Complete.
15:42:52 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1085 Complete." "Logical Log 1085 Complete."
15:43:37 Logical Log 1086 Complete.
15:43:38 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1086 Complete." "Logical Log 1086 Complete."
15:44:24 Logical Log 1087 Complete.
15:44:25 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1087 Complete." "Logical Log 1087 Complete."
15:45:10 Logical Log 1088 Complete.
15:45:11 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1088 Complete." "Logical Log 1088 Complete."
15:47:11 Logical Log 1089 Complete.
15:47:12 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1089 Complete." "Logical Log 1089 Complete."
15:48:01 Logical Log 1090 Complete.
15:48:02 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1090 Complete." "Logical Log 1090 Complete."
15:48:46 Logical Log 1091 Complete.
15:48:47 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1091 Complete." "Logical Log 1091 Complete."
15:49:38 Logical Log 1092 Complete.
15:49:39 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1092 Complete." "Logical Log 1092 Complete."
16:12:05 Checkpoint Completed: duration was 1346 seconds.
16:12:05 Checkpoint loguniq 1093, logpos 0x310
16:12:40 Logical Log 1093 Complete.
16:12:41 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1093 Complete." "Logical Log 1093 Complete."
16:13:25 Logical Log 1094 Complete.
16:13:26 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1094 Complete." "Logical Log 1094 Complete."
16:14:29 Logical Log 1095 Complete.
16:14:30 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1095 Complete." "Logical Log 1095 Complete."
16:15:21 Logical Log 1096 Complete.
16:15:22 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1096 Complete." "Logical Log 1096 Complete."
16:16:12 Logical Log 1097 Complete.
16:16:13 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1097 Complete." "Logical Log 1097 Complete."
16:17:00 Logical Log 1098 Complete.
16:17:01 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1098 Complete." "Logical Log 1098 Complete."
16:17:52 Logical Log 1099 Complete.
16:17:53 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1099 Complete." "Logical Log 1099 Complete."
16:18:50 Logical Log 1100 Complete.
16:18:51 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1100 Complete." "Logical Log 1100 Complete."
16:19:47 Logical Log 1101 Complete.
16:19:48 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1101 Complete." "Logical Log 1101 Complete."
16:28:45 Checkpoint Completed: duration was 538 seconds.
16:28:45 Checkpoint loguniq 1102, logpos 0x310
16:31:43 Logical Log 1102 Complete.
16:31:44 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1102 Complete." "Logical Log 1102 Complete."
16:32:43 Logical Log 1103 Complete.
16:32:44 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1103 Complete." "Logical Log 1103 Complete."
16:33:25 Logical Log 1104 Complete.
16:33:26 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1104 Complete." "Logical Log 1104 Complete."
16:34:23 Logical Log 1105 Complete.
16:34:24 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1105 Complete." "Logical Log 1105 Complete."
16:35:14 Logical Log 1106 Complete.
16:35:15 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1106 Complete." "Logical Log 1106 Complete."
16:35:59 Logical Log 1107 Complete.
16:36:00 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1107 Complete." "Logical Log 1107 Complete."
16:36:54 Logical Log 1108 Complete.
16:36:55 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1108 Complete." "Logical Log 1108 Complete."
16:37:43 Logical Log 1109 Complete.
16:37:44 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1109 Complete." "Logical Log 1109 Complete."
16:38:34 Logical Log 1110 Complete.
16:38:35 Process exited with return code 142: /bin/sh /bin/sh -c /opt/informix/etc/log_full.sh 2 23 "Logical Log 1110 Complete." "Logical Log 1110 Complete."
16:46:28 Checkpoint Completed: duration was 474 seconds.
16:46:28 Checkpoint loguniq 1111, logpos 0x310
各位大哥,能不能给出一个调优的方案啊?让检查点持续时间短一点。还需要什么信息,我尽量提供!谢谢了!
此外导入数据后该如何对数据库进行一个优化操作,让它不至于那么慢啊?
[ 本帖最后由 princejian 于 2006-5-21 00:45 编辑 ] |
|