From owner-freebsd-questions Mon Nov 20 10:48:24 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id KAA27604 for questions-outgoing; Mon, 20 Nov 1995 10:48:24 -0800 Received: from bacchus.eng.umd.edu (bacchus.eng.umd.edu [129.2.94.5]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id KAA27599 for ; Mon, 20 Nov 1995 10:48:20 -0800 Received: from latte.eng.umd.edu (latte.eng.umd.edu [129.2.98.15]) by bacchus.eng.umd.edu (8.7/8.7) with ESMTP id NAA06465; Mon, 20 Nov 1995 13:48:18 -0500 (EST) Received: (chuckr@localhost) by latte.eng.umd.edu (8.7/8.6.4) id NAA08827; Mon, 20 Nov 1995 13:48:18 -0500 (EST) Date: Mon, 20 Nov 1995 13:48:17 -0500 (EST) From: Chuck Robey X-Sender: chuckr@latte.eng.umd.edu To: Michael Ryan cc: FreeBSD Support Subject: Re: Increasing #semaphores & shm segs In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk 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 > > > > ============================================================================ 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!: