[lug] Semaphore stuff

B. Allyn ballyn at catacom.com
Fri Feb 25 13:18:05 MST 2000


I have a question from my db guy regarding semaphores that I can't answer...

Essentially, he's looking for "the amount of processes that can access an
individual semaphore". We're running a db system (texis by thunderstone)
that requires a large number of processes to access a single semaphore, as I
understand it. We'd like to get that value up to 150 or so.

According to the kernel sources included with the distribution I'm running,
the semaphore info looks like this:

> 
> #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 */
> 



More information about the LUG mailing list