SuSE GmbH

SuSE Support Database

Title: semget: Initialization failed

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

semget: Initialization failed

Programme reports semget: Initialization failed. errno 22

This problem appeared sometimes with Yard, but it can as well appear with binaries of SCO or SVR4. Solution: With Linux, the semaphores' number can only be directly configured in kernel. For this purpose, the following variables are in the file /usr/src/linux/include/linux/sem.h
#define SEMMNI  128             /* ?  max # of semaphore identifiers */
#define SEMMSL  32              /* <= 512 max num of semaphores per id */
Raise these values, probably:
#define SEMMSL  64              /* <= 512 max num of semaphores per id */
Compile a new kernel with this (do not forget make clean). This works definitively when no other programmes use semaphores.

This procedure works both with the kernel 1.2.13 and with the new 2.0s kernels.

----------

Keywords: YARD, SEMGET, SCO, SVR4, SEMAPHORES

----------

Feedback welcome: Send Mail to kfr@suse.de (Please give the following subject: SDB-kfr_41)

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

SDB-kfr_41, Copyright SuSE GmbH, Nuremberg, Germany - Version:
SuSE GmbH - Last generated: 07. Oct 1999 16:54:29 by maddin with sdb_gen 1.00.0