out of virtual shared memory - Informix
Posted in 2004
Hi Informix support,
I am not able to initialize Informix 7.31 running on NCR S 1400 h/w having
MP-RAS 3.02 operating system with 512 mb RAM.
Please find output of âoninit âvâ command , output of onstat âg seg and
onstat âg glo at the time of initialization, online.log, onconfig and
kernel parameters file.
Output of oninit âv
$ sudo oninit -vChecking group membership to determine server run modesucceeded
Reading configuration file '/usr/informix/etc/onconfig'...succeeded
Creating /INFORMIXTMP/.infxdirs ... succeeded
Creating infos file "/usr/informix/etc/.infos.ropmnsrv" ...
"/usr/informix/etc/.
conf.ropmnsrv" ... succeeded
Writing to infos file ... succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 14330 kbytes...succeeded
Creating buffer pool 60002 kbytes...succeeded
Initializing rhead structure...succeeded
Initializing ASF ...succeeded
Initializing Dictionary Cache and Stored Procedure Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Onlining 0 additional cpu vps...succeeded
Onlining 1 IO vps...succeeded
Forking main_loop thread...succeeded
Initialzing DR structures...succeeded
Forking 1 'ipcshm' listener threads...succeeded
Forking 1 'tlitcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 1 flushers...succeeded
Initializing log/checkpoint information...succeeded
Forking conversion threads
Opening primary chunks...succeeded
Opening mirror chunks...succeeded
Initializing dbspaces...succeeded
Validating chunks...succeeded
Initialize Async Log Flusher...succeeded
Forking btree cleaner...succeeded
Initializing DBSPACETEMP list
$ oninit: Fatal error in shared memory initialization
output of onstat âg seg command at the time initializing Informix
Informix Dynamic Server Version 7.31.UC2 -- Initialization -- Up 00:00:00
-- 8
6016 Kbytes
Segment Summary:
id key addr size ovhd class blkused blkfree
1301 1381451777 10000000 79691776 2072 R 9296 432
1202 1381451778 14c00000 8388608 724 V 171 853
Total: - - 88080384 - - 9467 1285
(* segment locked in memory)
output of onstat âg glo command at the time initializing Informix
Informix Dynamic Server Version 7.31.UC2 -- Initialization -- Up 00:00:02
-- 8
6016 Kbytes
MT global info:
sessions threads vps lngspins
0 4 5 0
sched calls thread switches yield 0 yield n yield forever
total: 0 0 0 0 0
per sec: 0 0 0 0 0
Virtual processor summary:
class vps usercpu syscpu total
cpu 1 0.00 0.00 0.00
aio 1 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
total 5 0.00 0.00 0.00
Individual virtual processors:
vp pid class usercpu syscpu total
1 8599 cpu 0.00 0.00 0.00
2 8600 adm 0.00 0.00 0.00
3 8601 lio 0.00 0.00 0.00
4 8605 pio 0.00 0.00 0.00
5 8606 aio 0.00 0.00 0.00
tot 0.00 0.00 0.00
tail $INFORMIXDIR/online.log
16:18:51 Physical Recovery Complete: 2 Pages Restored.
16:18:51 Logical Recovery Started.
16:18:51 Requested shared memory segment size rounded from 1081480KB to
1085440
KB
16:18:51 shmget: [ENOMEM][12]: key 52574804: out of shared memory, check
system
max shared memory segment size
16:18:51 out of virtual shared memory
16:18:52 Cannot Rollforward from Checkpoint.
16:18:53 Informix Dynamic Server Stopped.
16:18:53 mt_shm_remove: WARNING: may not have removed all/correct segments
sudo cat onconfig|pg
#**************************************************************************
#
# INFORMIX SOFTWARE, INC.
#
# Title: onconfig
# Description: Informix Dynamic Server Configuration Parameters
#
#**************************************************************************
# Root Dbspace Configuration
ROOTNAME rootdbs # Root dbspace nameROOTPATH /dev/online_root # Path for device containing root dbspace
ROOTOFFSET 0 # Offset of root dbspace into device
(Kbytes)
ROOTSIZE 2097150 # 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 16000 # Physical log file size (Kbytes)
# Logical Log Configuration
LOGFILES 10 # Number of logical log files
LOGSIZE 30000 # Logical log size (Kbytes)
# Diagnostics
MSGPATH /usr/informix/online.log # System message log file path
CONSOLE /dev/console # System console message path
ALARMPROGRAM /usr/informix/etc/no_log.sh # Alarm program pathSYSALARMPROGRAM /usr/informix/etc/evidence.sh # System Alarm program path
TBLSPACE_STATS 1
# System Archive Tape Device
TAPEDEV /backup/ifxback # Tape device path
TAPEBLK 16 # Tape block size (Kbytes)
TAPESIZE 4000000 # Maximum amount of data to put on tape
(Kbytes)
# Log Archive Tape Device
#
LTAPEDEV /backup/logbackup/log #log tape device path
#LTAPEDEV /dev/null # Log tape device path
LTAPEBLK 16 # Log tape block size (Kbytes)
LTAPESIZE 4000000 # Max amount of data to put on log tape
(Kbytes)
# Optical
STAGEBLOB # Informix Dynamic Server/Optical staging
area
# System Configuration
SERVERNUM 1 # Unique id corresponding to a DynamicServer in
stance
DBSERVERNAME ropmnsrv # Name of default database server
DBSERVERALIASES ropmnsrv_tcp # List of alternate dbservernames
NETTYPE ipcshm,1,200,CPU # Configure poll thread(s) for nettype
DEADLOCK_TIMEOUT 60 # Max time to wait of lock in distributed
env.
RESIDENT 1 # 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 200000 # Maximum number of locks
BUFFERS 30000 # Maximum number of shared buffers
NUMAIOVPS 1 # 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 1 # Number of buffer cleaner processes
SHMBASE 0x10000000L # Shared memory base address
SHMVIRTSIZE 8000 # initial virtual shared memory segmentsize
SHMADD 8192 # Size of new shared memory segments
(Kbytes)
SHMTOTAL 0 # Total shared memory (Kbytes).
0=>unlimited
CKPTINTVL 300 # Check point interval (in sec)
LRUS 8 # 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 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