shared memory ininitialization problem
Posted in 1998
Greetings!
We're in trouble because we can't initialize shared memory. What might
be the problem?
Here is an excerpt from the error log, showing the different types of
error messages we have got so far:
10:21:39 shmget: [EEXIST][17]: key 52564801: shared memory alreadyexists
10:21:39 mt_shm_init: can't create resident segment
11:51:00 shmat: [EMFILE][24]: out of shared memory segments, checksystem SHMSEG
11:51:00 mt_shm_init: can't create virtual segment
Trying to solve this one...
10:21:39 shmget: [EEXIST][17]: key 52564801: shared memory alreadyexists
10:21:39 mt_shm_init: can't create resident segment
we removed the process with the key 52564801 (had to become su first,
because owner = root ).
Then we changed Shared memory parameters in the onconfig file, ran
oninit -s, but then we have got the second type of error message.
Is it a Unix (Solaris) or Informix problem? Where is the place to look
at for documentation?
Thanks fo helping us,
Knut Behrends,
Chemnitz, Germany
Selected onconfig parameters (hope these are the ones that matter)
# Root Dbspace Configuration
ROOTNAME rootdbs # Root dbspace nameROOTPATH /dev/informix_raw1 # Path for device containing root
dbspace
ROOTOFFSET 0 # Offset of root dbspace into device
(Kbytes)
ROOTSIZE 20000 # Size of root dbspace (Kbytes) AUCHDEFAULT CHUNKSIZE
SERVERNUM 1 # Unique id corresponding to a OnLineinstance
DBSERVERNAME hator_shm # Name of default database serverhator_shm (shared memory) EINGEFUEGT VON KB 25.06.98 Admin g 4-49
DBSERVERALIASES # List of alternate dbservernames
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 formulti-processor
NUMCPUVPS 1 # Number of user (cpu) vps
SINGLE_CPU_VP 0 # If non-zero, limit number of cpu vpsto one
NOAGE 0 # Process aging
AFF_SPROC 0 # Affinity start processor
AFF_NPROCS 0 # Affinity number of processors
# Shared Memory Parameters
LOCKS 2000 # Maximum number of locks
BUFFERS 200 # Maximum number of shared buffers
NUMAIOVPS # 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 1 # Number of buffer cleaner processes#SHMBASE 0x0a00000 # Shared memory base address
ORIGINAL?
SHMBASE 0x0A000000L # GEAENDERT NACH ADMIN G 37-65 KB
02.07.98
SHMVIRTSIZE 8000 # initial virtual shared memory segmentsize
#SHMADD 8192 # Size of new shared memory segments
(Kbytes) ORIGINAL
SHMADD 16384 # Size of new shared memory segments
(Kbytes) GEAENDERT KB 02.07. 98 NACH ADMIN G 37-64
SHMTOTAL 0 # Total shared memory (Kbytes).
0=>unlimited
CKPTINTVL 300 # Check point interval (in sec)
LRUS 8 # 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)