Slow Text Blob updates
Posted in 2007
Topics: High Availability & Replication, Storage & Space Management, Server Administration, Transactions, Locking & Isolation, Logging & Checkpoints, Networking & sqlhosts Configuration, Licensing & Editions, Platform-Specific Issues
I have a table with a text field in it that is stored in the table the
LOGBUFF and PHYSBUFF are both set to 64KB. I am on aix 64bit Informix
9.4 FC7 and update stats run nightly. My problem is that when
updating the same text object that is larger that 35KB it takes about
30 seconds for the update statement to complete. I was wondering if
increasing the LOGBUFF or PHYSBUFF would decrease completion time for
the update. I have configured 4GB of log space in an unbuffered
database. Following is my onconfig. Any Help would be greatly
appreciated
ifx1 $ onstat -c
IBM Informix Dynamic Server Version 9.40.FC7 -- On-Line -- Up 3
days 11:37:15 -- 8829136 Kbytes
Configuration File: /Medic/APPS/Informix94/etc/onconfig.ifx1
#**************************************************************************
## Licensed Material - Property Of IBM
#
# "Restricted Materials of IBM"
#
# IBM Informix Dynamic Server
# (c) Copyright IBM Corporation 1996, 2004 All rights reserved.
#
# Title: onconfig.ifx1
# Description: IBM Informix Dynamic Server Configuration Parameters
#
#**************************************************************************
# Root Dbspace Configuration
ROOTNAME rootdbs # Root dbspace name
ROOTPATH /Medic/db/ifx1/rootdbs # Path for device containing root
dbspace
ROOTOFFSET 4 # Offset of root dbspace into device
(Kbytes)
ROOTSIZE 2064380 # Size of root dbspace (Kbytes)
# Disk Mirroring Configuration Parameters
MIRROR 0 # Mirroring flag (Yes = 1, No = 0)
MIRRORPATH # Path for device containing mirroredroot
MIRROROFFSET 0 # Offset into mirrored device
(Kbytes)
# Physical Log Configuration
PHYSDBS physlog # Location (dbspace) of physical log
PHYSFILE 128414 # Physical log file size (Kbytes)
# Logical Log Configuration
LOGFILES 103 # Number of logical log files
LOGSIZE 20000 # Logical log size (Kbytes)
# Diagnostics
MSGPATH /Medic/db/ifx1/informix.log # System message log file
path
CONSOLE /Medic/db/ifx1/console.log # System console message
path
# To automatically backup logical logs, edit alarmprogram.sh and set
# BACKUPLOGS=Y
ALARMPROGRAM /Medic/APPS/Informix94/etc/alarmprogram.sh # Alarm
program path
TBLSPACE_STATS 1 # Maintain tblspace statistics
# System Archive Tape Device
TAPEDEV /dev/rmt0.1 # Tape device path
TAPEBLK 256 # Tape block size (Kbytes)
TAPESIZE 195000000 # Maximum amount of data to put on
tape (Kbytes)
# Log Archive Tape Device
LTAPEDEV /dev/null # Log tape device path
LTAPEBLK 1024 # Log tape block size (Kbytes)
LTAPESIZE 8900000 # Max amount of data to put on log
tape (Kbytes)
# Optical
STAGEBLOB # Informix Dynamic Server staging
area
# System Configuration
SERVERNUM 1 # Unique id corresponding to a OnLineinstance
DBSERVERNAME ifx1 # Name of default database server
DBSERVERALIASES ifx1_tcp1 # List of alternate dbservernames
NETTYPE soctcp,5,200,CPU
DEADLOCK_TIMEOUT 60 # Max time to wait of lock indistributed env.
RESIDENT 0 # Forced residency flag (Yes = 1, No =
0)
MULTIPROCESSOR 1 # 0 for single-processor, 1 for multi-processor
NUMCPUVPS 16 # Number of user (cpu) vps
SINGLE_CPU_VP 0 # If non-zero, limit number of cpu vpsto one
NOAGE 1 # Process aging
AFF_SPROC 0 # Affinity start processor
AFF_NPROCS 0 # Affinity number of processors
# Shared Memory Parameters
LOCKS 1000000 # Maximum number of locks#BUFFERS 528000 # Maximum number of shared buffers
BUFFERS 640000 # Maximum number of shared buffers
NUMAIOVPS 1 # Number of IO vps
PHYSBUFF 128 # Physical log buffer size (Kbytes)
LOGBUFF 64 # Logical log buffer size (Kbytes)
CLEANERS 128 # Number of buffer cleaner processes
SHMBASE 0x700000010000000
SHMVIRTSIZE 5242880 # initial virtual shared memorysegment size
SHMADD 262144 # Size of new shared memory segments
(Kbytes)
SHMTOTAL 0 # Total shared memory (Kbytes).
0=>unlimited
CKPTINTVL 600 # Check point interval (in sec)
LRUS 128 # Number of LRU queues
LRU_MAX_DIRTY 2.000000 # LRU percent dirty begin cleaninglimit
LRU_MIN_DIRTY 1.000000 # LRU percent dirty end cleaninglimit
TXTIMEOUT 0x12c # Transaction timeout (in sec)
STACKSIZE 256
# Dynamic Logging
# DYNAMIC_LOGS:
# 2 : server automatically add a new logical log when necessary.
(ON)
# 1 : notify DBA to add new logical logs when necessary. (ON)
# 0 : cannot add logical log on the fly. (OFF)
#
# When dynamic logging is on, we can have higher values for LTXHWM/
LTXEHWM,
# because the server can add new logical logs during long transaction
rollback.
# However, to limit the number of new logical logs being added, LTXHWM/
LTXEHWM# can be set to smaller values.
#
# If dynamic logging is off, LTXHWM/LTXEHWM need to be set to smaller
values
# to avoid long transaction rollback hanging the server due to lack of
logical
# log space, i.e. 50/60 or lower.
DYNAMIC_LOGS 2
LTXHWM 50
LTXEHWM 60
# System Page Size
# BUFFSIZE - OnLine no longer supports this configuration parameter.
# To determine the page size used by OnLine on your
platform
# see the last line of output from the command, 'onstat -
b'.
# Recovery Variables
# OFF_RECVRY_THREADS:
# Number of parallel worker threads during fast recovery or an offline
restore.
# ON_RECVRY_THREADS:
# Number of parallel worker threads during an online restore.
OFF_RECVRY_THREADS 10 # Default number of offline workerthreads
ON_RECVRY_THREADS 1 # Default number of online workerthreads
# Data Replication Variables
DRINTERVAL 30 # DR max time between DR buffer
flushes (in sec)
DRTIMEOUT 30 # DR network timeout (in sec)
DRLOSTFOUND /Medic/APPS/Informix94/etc/dr.lostfound
# DR lost+found file path
# CDR Variables
CDR_EVALTHREADS 1,2 # evaluator threads (per-cpu-
vp,additional)
CDR_DSLOCKWAIT 5 # DS lockwait timeout (seconds)
CDR_QUEUEMEM 4096 # Maximum amount of memory for any CDR
queue (Kbytes)
CDR_NIFCOMPRESS 0 # Link level compression (-1 never, 0
none, 9 max)
CDR_SERIAL 0,0 # Serial Column Sequence
CDR_