IDS 7.30 CPU Usage
Posted in 1999
Topics: High Availability & Replication, Backup & Restore, Performance & Tuning, Installation, Setup & Upgrades, Storage & Space Management, Connectivity: ESQL/C, 4GL & Embedded SQL, Server Administration, Transactions, Locking & Isolation, Logging & Checkpoints, Networking & sqlhosts Configuration, Platform-Specific Issues, Versions, Editions & End-of-Life
Back in November we upgraded both our OS and Informix engine. From AIX
3.2.5 to AIX 4.3.2 and SE 5.03 UC1 to IDS 7.30 UC5. We are still using the
same system (RISC 6000 59H 768 meg. memory) and programs (4gl programs
recompiled with I4GL 7.20 UD6). We were told to expect a huge performance
increase, well it hasn't happened. Actually as a whole it is slower, the
problem appears to be that when we get a moderate amount of activity the
online process starts taking up all the CPU resources making the whole
system run slower. After studying several performance related articles,
books, newsgroup posts and inquiring with other companies who have done
something similar, we have come up with no solution. Does anyone have any
suggestions? We really need to get this figured out. We are at a point
where we need any help we can get and would be willing to pay someone to
come to our location or help us remotely.
Thanks for any help,
Jay Turner
Here is our onconfig file and a onstat profile.
# Root Dbspace Configuration
ROOTNAME rootdbs # Root dbspace nameROOTPATH /dev/raw_root # Path for device containing root dbspace
ROOTOFFSET 0 # Offset of root dbspace into device
(Kbytes)
ROOTSIZE 160000 # Size of root dbspace (Kbytes)
# Disk Mirroring Configuration Parameters
MIRROR 0 # Mirroring flag (Yes = 1, No = 0)
MIRRORPATH # Path for device containing mirrored root
MIRROROFFSET 0 # Offset into mirrored device (Kbytes)
# Physical Log Configuration
PHYSDBS rootdbs # Location (dbspace) of physical log
PHYSFILE 12000 # Physical log file size (Kbytes)
# Logical Log Configuration
LOGFILES 6 # Number of logical log files
LOGSIZE 4000 # Logical log size (Kbytes)
# Diagnostics
MSGPATH /informix7/online.log # System message log file path
CONSOLE /dev/console # System console message pathALARMPROGRAM /informix7/etc/log_full.sh # Alarm program path
SYSALARMPROGRAM /informix7/etc/evidence.sh # System Alarm program path
TBLSPACE_STATS 1
# System Archive Tape Device
TAPEDEV /dev/rmt0 # Tape device path
TAPEBLK 240 # Tape block size (Kbytes)
TAPESIZE 7000000 # Maximum amount of data to put on tape
(Kbytes)
# Log Archive Tape Device
LTAPEDEV /dev/null # Log tape device path
LTAPEBLK 16 # Log tape block size (Kbytes)
LTAPESIZE 10240 # Max amount of data to put on log tape
(Kbytes)
# Optical
STAGEBLOB # Informix Dynamic Server/Optical staging
area
# System Configuration
SERVERNUM 0 # Unique id corresponding to a DynamicServer instance
DBSERVERNAME prod1_srvr # Name of default database server
DBSERVERALIASES # List of alternate dbservernames
NETTYPE ipcshm,1,256,CPU # Configure poll thread(s) for nettype
DEADLOCK_TIMEOUT 60 # Max time to wait of lock in distributed
env.
RESIDENT 0 # Forced residency flag (Yes = 1, No = 0)
MULTIPROCESSOR 0 # 0 for single-processor, 1 formulti-processor
NUMCPUVPS 1 # Number of user (cpu) vps
SINGLE_CPU_VP 1 # If non-zero, limit number of cpu vps toone
NOAGE 1 # Process aging
AFF_SPROC 0 # Affinity start processor
AFF_NPROCS 0 # Affinity number of processors
# Shared Memory Parameters
LOCKS 30000 # Maximum number of locks
BUFFERS 24000 # Maximum number of shared buffers
NUMAIOVPS 2 # Number of IO vps
PHYSBUFF 32 # Physical log buffer size (Kbytes)
LOGBUFF 32 # Logical log buffer size (Kbytes)LOGSMAX 6 # Maximum number of logical log files
CLEANERS 24 # Number of buffer cleaner processes
SHMBASE 0x30000000 # Shared memory base address
SHMVIRTSIZE 75000 # initial virtual shared memory segment size
SHMADD 16000 # Size of new shared memory segments
(Kbytes)
SHMTOTAL 0 # Total shared memory (Kbytes). 0=>unlimited
CKPTINTVL 600 # Check point interval (in sec)
LRUS 24 # Number of LRU queues
LRU_MAX_DIRTY 60 # LRU percent dirty begin cleaning limit
LRU_MIN_DIRTY 50 # LRU percent dirty end cleaning limit
LTXHWM 50 # Long transaction high water markpercentage
LTXEHWM 60 # Long transaction high water mark
(exclusive)
TXTIMEOUT 0x12c # Transaction timeout (in sec)
STACKSIZE 32 # Stack size (Kbytes)
# System Page Size
# BUFFSIZE - Dynamic Server no longer supports this configuration parameter.
# To determine the page size used by Dynamic Server 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 worker threads
# Data Replication Variables
# DRAUTO: 0 manual, 1 retain type, 2 reverse type
DRAUTO 0 # DR automatic switchover
DRINTERVAL 30 # DR max time between DR buffer flushes (in
sec)
DRTIMEOUT 30 # DR network timeout (in sec)DRLOSTFOUND /informix7/etc/dr.lostfound # DR lost+found file path
# CDR Variables
CDR_LOGBUFFERS 2048 # size of log reading buffer pool (Kbytes)
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)
# Backup/Restore variables
BAR_ACT_LOG /tmp/bar_act.log
BAR_MAX_BACKUP 0
BAR_RETRY 1
BAR_NB_XPORT_COUNT 10
BAR_XFER_BUF_SIZE 31
# Informix Storage Manager variables
ISM_DATA_POOL ISMData # If the data pool name is changed, be sure
to
# update $INFORMIXDIR/bin/onbar. Change to
# ism_catalog -create_bootstrap -pool <new name>
ISM_LOG_POOL ISMLogs
# Read Ahead Variables
RA_PAGES 16 # Number of pages to attempt to read ahead
RA_THRESHOLD 8 # Number of pages left before next group
# DBSPACETEMP:
# Dynamic Server equivalent of DBTEMP for SE. This is the list of dbspaces
# that the Dynamic Server SQL Engine will use to create temp tables etc.
# If specified it must be a colon separated list of dbspaces that exist
# when the Dynamic Server system is brought online. If not specified, or if
# all dbspac
In article <848nb7$bbq$1@ionews.ionet.net>, Jay Turner <tjay@edcpub.com>
writes
>Back in November we upgraded both our OS and Informix engine. From AIX
>3.2.5 to AIX 4.3.2 and SE 5.03 UC1 to IDS 7.30 UC5. We are still using the
>same system (RISC 6000 59H 768 meg. memory) and programs (4gl programs
>recompiled with I4GL 7.20 UD6). We were told to expect a huge performance
>increase, well it hasn't happened. Actually as a whole it is slower, the
>problem appears to be that when we get a moderate amount of activity the
>online process starts taking up all the CPU resources making the whole
>system run slower. After studying several performance related articles,
>books, newsgroup posts and inquiring with other companies who have done
>something similar, we have come up with no solution. Does anyone have any
>suggestions? We really need to get this figured out. We are at a point
>where we need any help we can get and would be willing to pay someone to
>come to our location or help us remotely.
>
Where are you? Which country/where?
I would certainly help, Although I would probably need to monitor
the server. i.e. 1 day of my time remotely.
Please read and try the following first.
How many Mhz is the system CPU and of what exact type?
How many disks do you have in the machine?
What type/size/speed are the disks and are some disks faster than
others? Is any kind of RAID level in use?
Any other application on the machine?
How many users on the system?
>Thanks for any help,
>Jay Turner
>
>Here is our onconfig file and a onstat profile.
>
># Root Dbspace Configuration
>
>ROOTNAME rootdbs # Root dbspace name>ROOTPATH /dev/raw_root # Path for device containing root dbspace
>ROOTOFFSET 0 # Offset of root dbspace into device
>(Kbytes)
>ROOTSIZE 160000 # Size of root dbspace (Kbytes)>
># Disk Mirroring Configuration Parameters
>
>MIRROR 0 # Mirroring flag (Yes = 1, No = 0)
>MIRRORPATH # Path for device containing mirrored root
>MIRROROFFSET 0 # Offset into mirrored device (Kbytes)>
># Physical Log Configuration
>
>PHYSDBS rootdbs # Location (dbspace) of physical log
>PHYSFILE 12000 # Physical log file size (Kbytes)>
># Logical Log Configuration
>
>LOGFILES 6 # Number of logical log files
>LOGSIZE 4000 # Logical log size (Kbytes)>
Change to 1000 logfiles of 250K each. Alternate numbered logfiles
should be on separate disks.
># Diagnostics
>
>MSGPATH /informix7/online.log # System message log file path
>CONSOLE /dev/console # System console message path>ALARMPROGRAM /informix7/etc/log_full.sh # Alarm program path
>SYSALARMPROGRAM /informix7/etc/evidence.sh # System Alarm program path
>TBLSPACE_STATS 1>
># System Archive Tape Device
>
What tape drives do you have?
Are you transaction logging your databases.
select * from sysmaster:sysdatabases
to find out.
>TAPEDEV /dev/rmt0 # Tape device path
>TAPEBLK 240 # Tape block size (Kbytes)
>TAPESIZE 7000000 # Maximum amount of data to put on tape
>(Kbytes)>
># Log Archive Tape Device
>
>LTAPEDEV /dev/null # Log tape device path
>LTAPEBLK 16 # Log tape block size (Kbytes)
>LTAPESIZE 10240 # Max amount of data to put on log tape
>(Kbytes)>
># Optical
>
>STAGEBLOB # Informix Dynamic Server/Optical staging
>area
>
># System Configuration
>
>SERVERNUM 0 # Unique id corresponding to a Dynamic>Server instance
>DBSERVERNAME prod1_srvr # Name of default database server
>DBSERVERALIASES # List of alternate dbservernames
>NETTYPE ipcshm,1,256,CPU # Configure poll thread(s) for nettype
>DEADLOCK_TIMEOUT 60 # Max time to wait of lock in distributed
>env.
>RESIDENT 0 # Forced residency flag (Yes = 1, No = 0)
>
>MULTIPROCESSOR 0 # 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
>
>NOAGE 1 # Process aging
>AFF_SPROC 0 # Affinity start processor
>AFF_NPROCS 0 # Affinity number of processors>
># Shared Memory Parameters
>LOCKS 30000 # Maximum number of locks
>BUFFERS 24000 # Maximum number of shared buffers
>NUMAIOVPS 2 # Number of IO vps
>PHYSBUFF 32 # Physical log buffer size (Kbytes)
>LOGBUFF 32 # Logical log buffer size (Kbytes)>LOGSMAX 6 # Maximum number of logical log files
>CLEANERS 24 # Number of buffer cleaner processes
>SHMBASE 0x30000000 # Shared memory base address
>SHMVIRTSIZE 75000 # initial virtual shared memory segment size
>SHMADD 16000 # Size of new shared memory segments
>(Kbytes)
>SHMTOTAL 0 # Total shared memory (Kbytes). 0=>unlimited
>CKPTINTVL 600 # Check point interval (in sec)
>LRUS 24 # Number of LRU queues
>LRU_MAX_DIRTY 60 # LRU percent dirty begin cleaning limit
>LRU_MIN_DIRTY 50 # LRU percent dirty end cleaning limit
Reduce LRU_MAX_DIRTY to 10 LRU_MIN_DIRTY to 5.
>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)>
># System Page Size
># BUFFSIZE - Dynamic Server no longer supports this configuration parameter.
># To determine the page size used by Dynamic Server 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 worker>threads
>ON_RECVRY_THREADS 1 # Default number of online worker threads>
># Data Replication Variables
Is data replication in use?
># DRAUTO: 0 manual, 1 retain type, 2 reverse type
>DRAUTO 0 # DR automatic switchover
>DRINTERVAL 30 # DR max time between DR buffer flushes (in
>sec)
>DRTIMEOUT 30 # DR network timeout (in sec)>DRLOSTFOUND /informix7/etc/dr.lostfound # DR lost+found file path
>
Or CDR in use?
># CDR Variables
>CDR_LOGBUFFERS 2048 # size of log reading buffer pool (Kbytes)
Related threads
- onbar -c -F in Windows Informix instance
- Anyone... SQLCODE=-668, ISAM error=-1
- Not using the 100% logical log page size alloacted to informix