2004-03-10 18:40:28

by Robert L. Harris

[permalink] [raw]
Subject: Oracle SHM values?



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.


Attachments:
(No filename) (2.12 kB)
signature.asc (189.00 B)
Digital signature
Download all attachments

2004-03-28 09:00:59

by Michael Mauch

[permalink] [raw]
Subject: Re: Oracle SHM values?

Robert L. Harris wrote:

> 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?

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