Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: NEed Help: Linux Kernel-Parameter SHMMAX, SHMMIN,..

Re: NEed Help: Linux Kernel-Parameter SHMMAX, SHMMIN,..

From: <joebrown_at_shmengie.dsj>
Date: 9 Nov 1998 15:02:59 -0500
Message-ID: <727hpj$90n$1@shmengie.dsj>

/usr/src/linux should be linked to the kernel source used to configure your system.

Mine is symbolically linked as (BTW: I'm using the Redhat 5.1 distribution, the values shown here are the defaults)

/usr/src/linux -> /usr/src/linux-2.0.34/

/usr/src/linux/include/asm/shmparam.h contains:

#define _SHM_ID_BITS 7

 ...
#define SHMMAX 0x2000000 /* max shared seg size (bytes) */
#define SHMMIN 1 /* really PAGE_SIZE */ /* min shared seg size (bytes) */
#define SHMMNI (1<<_SHM_ID_BITS) /* max num of segs system wide */
#define SHMSEG SHMMNI /* max shared segs per process */
...
Which translates as:

SHMMAX = 33554432
SHMMIN = 1
SHMMNI = 128
SHMSEG = 128

/usr/src/linux/include/linux/sem.h:

#define SEMMNI 128 /* ? max # of semaphore identifiers */
#define SEMMSL 32 /* <= 512 max num of semaphores per id */
#define SEMMNS (SEMMNI*SEMMSL) /* ? max # of semaphores in system */
#define SEMOPM 32 /* ~ 100 max num of ops per semop call */
#define SEMVMX 32767 /* semaphore maximum value */

You can do the math there...

If these parameters aren't correct, you need to set them in the above listed include files and rebuild the kernel.

See /usr/include/linux/README for more info..

HTH --

Joe Brown                    -               Programmer
joebrown_at_leading.net         -                      DBA
joe@.hopi.dtcc.edu           -            Network Admin
http://users.leading.net/~joebrown     Have a Great day!!!
Received on Mon Nov 09 1998 - 14:02:59 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US