Skip to contentSkip to conversation

Oracle SHM values?

DISCUSSION Robert L. Harris 2 participants 2 messages Mar 10, 2004 – Mar 28, 2004

lore
Share & tools
lore
#0 lore raw

I have users who need this:
set the following in /usr/src/linux/include/asm/shmparam.h SHMMAX 128MB
SHMMIN 1
SHMMNI 100
SHMSEG 10

and following in /usr/src/linux/inlude/linux/sem.h

SEMMNI 100
SEMMSL 60
SEMMNS 110
SEMOPM 100
SEMVMX 32767

then recompile and install.

Is there a way to pass these values via append, or anything other than having a one-off custom kernel config?

:wq!
---------------------------------------------------------------------------
Robert L. Harris | GPG Key ID: E344DA3B

                                         @ x-hkp://pgp.mit.edu

DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.

Life is not a destination, it's a journey.
Microsoft produces 15 car pileups on the highway.
Don't stop traffic to stand and gawk at the tragedy.

#1 lore raw
Quoted 15 lines · Robert L. Harris

I have users who need this:
set the following in /usr/src/linux/include/asm/shmparam.h SHMMAX 128MB
SHMMIN 1
SHMMNI 100
SHMSEG 10

and following in /usr/src/linux/inlude/linux/sem.h

SEMMNI 100
SEMMSL 60
SEMMNS 110
SEMOPM 100
SEMVMX 32767

Quoted 4 lines

then recompile and install.

Is there a way to pass these values via append, or anything other than having a one-off custom kernel config?

You can set some of them with sysctl:

% sysctl -a | egrep "sem|shm"
kernel.sem = 250 32000 32 128
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.shmmax = 33554432

The order of the space separated list in kernel.sem is semmsl semmns semopm semmni (see /usr/src/linux/ipc/sem.c).

I guess the "missing" variables are no longer needed in kernel 2.4/2.6.

Regards...
Michael