Date: Mon, 20 Nov 1995 13:48:17 -0500 (EST) From: Chuck Robey <chuckr@glue.umd.edu> To: Michael Ryan <mike@networx.ie> Cc: FreeBSD Support <questions@freebsd.org> Subject: Re: Increasing #semaphores & shm segs Message-ID: <Pine.SUN.3.91.951120134500.8472B-100000@latte.eng.umd.edu> In-Reply-To: <ECS9511192220B@networx.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 19 Nov 1995, Michael Ryan wrote: > Hello, > > Does anybody know how to increase the number > of semaphores and shared memory segments > available under FreeBSD. I've included the IPC > options in the kernel config file but I can't see where to > increase their numbers. Presently, I'm getting only > about 10 semaphores, and I need many more. Take a look at /usr/src/sys/sys/sem.h. I did a grep for SEM and found: sem.h:#ifndef SEMMNI sem.h:#define SEMMNI 10 /* # of semaphore identifiers */ sem.h:#ifndef SEMMNS sem.h:#define SEMMNS 60 /* # of semaphores in system */ sem.h:#ifndef SEMUME sem.h:#define SEMUME 10 /* max # of undo entries per process */ sem.h:#ifndef SEMMNU sem.h:#define SEMMNU 30 /* # of undo structures in system */ sem.h:#ifndef SEMMAP sem.h:#define SEMMAP 30 /* # of entries in semaphore map */ sem.h:#ifndef SEMMSL sem.h:#define SEMMSL SEMMNS /* max # of semaphores per id */ sem.h:#ifndef SEMOPM sem.h:#define SEMOPM 100 /* max # of operations per semop call */ As an example of what to put in a kernel config file, the next line is in mine: options "SEMMNI=20" > > I've searched the CD-ROM FAQs but there aren't any > pointers. > > > Thanks, > Mike > <mike@networx.ie> > > > ============================================================================ Chuck Robey chuckr@eng.umd.edu -- I run FreeBSD on n3lxx and Journey2 --------------------------------------------------------------------------- The Dilbert Zone is Dilbert's new WWW home! The area features never-before-seen original sketches of Dilbert, a photo tour of Scott Adams' studio, Dilbert Trivia and memorabilia, high school photos and much more!: <URL:http://www.unitedmedia.com/comics/dilbert/>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.951120134500.8472B-100000>