Shared memory size on Linux

Shared memory size on Linux

Post by Gerhard Hofma » Wed, 13 Feb 2002 01:47:53



Hi all,

I had some problems when starting Ingres on Suse Linux. It complained to be
unable to get enough shared memory.

Workaround in the moment is to put

   echo 134217728 > /proc/sys/kernel/shmmax

at the beginning of the ingres startup script in /etc/init.d, this overrides
the kernel default.

Is there any reason why I should not use this method?
How can I configure the shared memory in the kernel? I tried "make xconfig"
command but this does not show an option to set the shared memory
parameters.

TIA
Gerhard Hofmann

 
 
 

Shared memory size on Linux

Post by Karl & Betty Schend » Wed, 13 Feb 2002 03:26:55



Quote:>Hi all,

>I had some problems when starting Ingres on Suse Linux. It complained to be
>unable to get enough shared memory.

>Workaround in the moment is to put

>   echo 134217728 > /proc/sys/kernel/shmmax

>at the beginning of the ingres startup script in /etc/init.d, this overrides
>the kernel default.

Not sure about changing the kernel default shm max, but you should check
out your locking parameters in CBF as well.  It's pretty easy to get Ingres
configured for ridiculous numbers of locks and resources, and the lock/log
shared memory segment gets huge.  I haven't seen many Ingres installations
that actually use more than say 50000 locks/resources.

--

K/B Computer Associates       www.kbcomputer.com
Ingres, Unix, VMS             Consulting and Training

 
 
 

1. Shared Memory Size vs Physical Memory Size

Can somebody please explain the pros and cons of increasing either the
initial virtual memory segment or adding a further segment via "onmode -
a" on a machine that is Informix Dynamic Server dedicated. Our
calculated shared memory size, as can be seen below, is only some 50%
of our actual physical memory. Any pointers/hints would, as ever, be
much appreciated. We have two instances running (LIVE and TEST) - see
outout from onstat below. Our Informix application connects via shared
memory.

ICL Teamserver M754i
SCO Openserver 5.0.4 (finally Y2K compliant ! as at yesterday !!)
Informix Dynamic Server 7.30.UC2
640Mb RAM

LIVE
onstat yields 258048 Kbytes

TEST
onstat yields 90112 Kbytes

As can be seen, the sum of the above is somewhat less than 640Mb.

Regards
Glyn Balmer

--
If it always works, why don't parachutists
pull the emergency 'chute first?

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

2. sql or perl database for our Site

3. Shared Memory Sizing

4. sql2000 sp2 fails re-install

5. Fwd: Re: Shared memory for RH Linux 7.1

6. Moving Users from on SQLServer to another

7. problems setting shared memory on linux

8. The remote procedure call failed and did not execute during merge replication

9. Shared memory for RH Linux 7.1

10. Fwd: Re: Shared memory for RH Linux 7.1

11. oracle8i on linux - shared memory segments

12. Q: How to reconfigure shared-memory segment size in Sun Solaris 2.5.1 kernel (SPARC)

13. Shared memory segment size