- modify/tune max.num. of semaphores SEMMNI
- Posted by peter pilsl on December 1st, 2003
In my applications I use a great numer of shared memory segments and
corresponding semaphores for locking. From time to time I seem to exceed
the max. numbers of allowed semaphores SEMMNI. This is set to 128 in
include/linux/sem.h which seems quite low to me.
Any reason why not to increase this number to 512 or whatever ? I dont use
semaphore-arrays but only scalar semaphores.
thnx,
peter
ps: any better place to ask this than here ?
--
peter pilsl
pilsl_usenet@goldfisch.at
http://www.goldfisch.at
- Posted by David on December 1st, 2003
peter pilsl wrote:
I always change it before I compile my kernel and haven't had any
problems with it. I also change kernel/printk.c
#define LOG_BUF_LEN (16???) /* This must be a power of two */
Don't remember the original setting above to (65536)
--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.23 SMP i686 (GCC) 3.3.2
Uptime: 2 days, 2:32, 2 users, load average: 0.42, 0.63, 0.58
- Windows Semaphores Sinalization (Development Resources) by tcavaleiro
- Use of semaphores (Programming) by Christopher Benson-Manica
- buffer implementation using semaphores (Programming) by metrix007@yahoo.com
- How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2? (Linux / Variants) by linuxquestion@yahoo.com
- semaphores or mutex impl (Microprocessors) by Bryan Bullard

