SHARED MEMORY ISSUE - SORRY FOR DIRECTLY ASKING THIS.
Posted in 2004
Topics: Stored Procedures & SPL, Server Administration, Platform-Specific Issues
Dear Team,
Thank you Art and Jonathan for the help so far.
I just want to know who difficult to change the LINUX settings so that
I can allocate
around 2.6GB memory from my current setting of 1.7GB.
The story so far to those who have missed my original email ....
Following is my "ipcs" settings.
------ Shared Memory Segments --------
key shmid owner perms bytes nattch
status
0x52574801 0 root 660 536870912 31
locked
0x52574802 32769 root 660 536870912 31
locked
0x52574803 65538 root 660 346374144 31
locked
0x52574804 98307 root 660 327680000 31
0x52574805 131076 root 666 655360 46
0x52574806 163845 root 666 655360 43
0x52574807 196614 root 666 655360 38
0x52574808 229383 root 666 655360 45
0x52574809 262152 root 666 655360 43
0x00000000 294921 informix 600 46084 2 dest
------ Semaphore Arrays --------
key semid owner perms nsems status
0x00000000 0 root 660 32
0x00000000 32769 root 666 57
0x00000000 65538 root 666 57
0x00000000 98307 root 666 57
0x00000000 131076 root 666 57
0x00000000 163845 root 666 57
------ Message Queues --------
key msqid owner perms used-bytes messages
============================================================
This the settings for maps
============================================================
#cd /proc/1420(informix processid)/maps
08048000-084b1000 r-xp 00000000 08:03 540702
/usr/informix/bin/oninit
084b1000-08563000 rw-p 00468000 08:03 540702
/usr/informix/bin/oninit
08563000-0859d000 rwxp 00000000 00:00 0
40000000-40016000 r-xp 00000000 08:08 73133 /lib/ld-2.2.4.so
40016000-40017000 rw-p 00015000 08:08 73133 /lib/ld-2.2.4.so
40017000-40018000 rw-p 00000000 00:00 0
40018000-40019000 r-xp 00000000 08:03 197893
/usr/informix/lib/iosm07a.so
40019000-4001a000 rw-p 00000000 08:03 197893
/usr/informix/lib/iosm07a.so
4001a000-4001b000 rw-p 00000000 00:00 0
4001b000-40025000 r-xp 00000000 08:08 73175
/lib/libnss_nisplus-2.2.4.so
40025000-40026000 rw-p 00009000 08:08 73175
/lib/libnss_nisplus-2.2.4.so
40029000-4004b000 r-xp 00000000 08:08 73127
/lib/i686/libm-2.2.4.so
4004b000-4004c000 rw-p 00021000 08:08 73127
/lib/i686/libm-2.2.4.so
4004c000-4004f000 r-xp 00000000 08:08 73146 /lib/libdl-2.2.4.so
4004f000-40050000 rw-p 00002000 08:08 73146 /lib/libdl-2.2.4.so
40050000-40055000 r-xp 00000000 08:08 73144
/lib/libcrypt-2.2.4.so
40055000-40056000 rw-p 00004000 08:08 73144
/lib/libcrypt-2.2.4.so
40056000-4007d000 rw-p 00000000 00:00 0
4007d000-401b0000 r-xp 00000000 08:08 73125
/lib/i686/libc-2.2.4.so
401b0000-401b5000 rw-p 00132000 08:08 73125
/lib/i686/libc-2.2.4.so
401b5000-401ba000 rw-p 00000000 00:00 0
401ba000-401c4000 r-xp 00000000 08:08 73167
/lib/libnss_files-2.2.4.so
401c4000-401c5000 rw-p 00009000 08:08 73167
/lib/libnss_files-2.2.4.so
401d4000-401e7000 r-xp 00000000 08:08 73151 /lib/libnsl-2.2.4.so
4004f000-40050000 rw-p 00002000 08:08 73146 /lib/libdl-2.2.4.so
40050000-40055000 r-xp 00000000 08:08 73144
/lib/libcrypt-2.2.4.so
40055000-40056000 rw-p 00004000 08:08 73144
/lib/libcrypt-2.2.4.so
40056000-4007d000 rw-p 00000000 00:00 0
4007d000-401b0000 r-xp 00000000 08:08 73125
/lib/i686/libc-2.2.4.so
401b0000-401b5000 rw-p 00132000 08:08 73125
/lib/i686/libc-2.2.4.so
401b5000-401ba000 rw-p 00000000 00:00 0
401ba000-401c4000 r-xp 00000000 08:08 73167
/lib/libnss_files-2.2.4.so
401c4000-401c5000 rw-p 00009000 08:08 73167
/lib/libnss_files-2.2.4.so
401d4000-401e7000 r-xp 00000000 08:08 73151 /lib/libnsl-2.2.4.so
401e7000-401e8000 rw-p 00012000 08:08 73151 /lib/libnsl-2.2.4.so
401e8000-401ea000 rw-p 00000000 00:00 0
50000000-70000000 rw-s 00000000 00:04 0 /SYSV52574801
(deleted)
70000000-90000000 rw-s 00000000 00:04 32769 /SYSV52574802
(deleted)
90000000-a4a54000 rw-s 00000000 00:04 65538 /SYSV52574803
(deleted)
a4a54000-b82d4000 rw-s 00000000 00:04 98307 /SYSV52574804
(deleted)
b82d4000-b8374000 rw-s 00000000 00:04 131076 /SYSV52574805
(deleted)
b8374000-b8414000 rw-s 00000000 00:04 163845 /SYSV52574806
(deleted)
b8414000-b84b4000 rw-s 00000000 00:04 196614 /SYSV52574807
(deleted)
b84b4000-b8554000 rw-s 00000000 00:04 229383 /SYSV52574808
(deleted)
b8554000-b85f4000 rw-s 00000000 00:04 262152 /SYSV52574809
(deleted)
bffd5000-bffee000 rwxp fffe8000 00:00 0
"maps" [readonly] 36L, 2395C
The story so far to those who have missed my original email ....
I am trying to increase shared memory setting on our server running on
a DELL poweredge 6650 with 4GB RAM and Linux 2.4.9-e.3smp.
For some reason if I set the buffers value to anything morethan 700000
it crashed saying can't allocate shared memory.
Here I don't want to increase the Virtual segment but the Buffers.
I tried the following SHMMAX values but Informix doesn't seems to like
any of the values set through sysctl.conf during the server bootup.
#kernel.shmmax = 33554432 - release note value
#kernel.shmmax = 134217728
#kernel.shmmax = 2*536870912
(all above values failed with more than 700000 buffers)
SHMBASE 0x50000000 # Shared memory base address in
onconfig -(release note says this should be set to 0x1000000L. But when you do
that you can't allocate shared memory more than 700 MB)
kernel.shmmax = 536870912 (current value)
kernel.shmmin = 1
kernel.shmmni = 128
kernel.shmseg = 128
kernel.semmns = 4096
kernel.semmnu = 4096
kernel.semume = 32
kernel.semmap = 4096
kernel.semmsl = 100
I have no clue why It can't go beyond the shared memeory value of
1896000 KB (When buffers value set above 700000).
What am I missing here??
Any answer to this is much appreciated.
I have included the cat /proc/meminfo, onconfig and online.log values
for you to
get an idea.
cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 3692048384 2287001600 1405046784 1521373184 107352064 151183360
Swap: 2146754560 0 2146754560
MemTotal: 3605516 kB
MemFree: 1372116 kB
MemShared: 1485716 kB
Buffers: 104836 kB
Cached: 147640 kB
SwapCached: 0 kB
Active: 136932 kB
Inact_dirty: 1601260 kB
Inact_clean: 0 kB
Inact_target: 917488 kB
HighTotal: 2752448 kB
HighFree: 699988 kB
LowTotal: 853068 kB
LowFree: 672128 kB
SwapTotal: 2096440 kB
SwapFree: 2096440 kB
BigPagesFree: 0 kB
Informix Dynamic Server Version 7.31.UD6 -- On-Line -- Up 09:23:06
-- 1896196 Kbytes
Configuration File: /usr/informix/etc/onconfig.malco
#**************************************************************************
#
# INFORMIX SOFTWARE, INC.
#
# Title: