From owner-freebsd-hackers Sun Feb 13 3:15:23 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from gate.webclub.ru (gate.web2000.ru [195.58.61.2]) by builder.freebsd.org (Postfix) with ESMTP id E181F4174 for ; Sun, 13 Feb 2000 03:15:20 -0800 (PST) Received: from newbee.web2000.ru ([195.58.61.40]) by gate.webclub.ru with smtp (Exim 3.02 #1) id 12Jwwt-00022m-00; Sun, 13 Feb 2000 14:12:19 +0300 From: Andrey Novikov Organization: WebClub To: Brian Dean Subject: Re: Tuning up semaphores in kernel Date: Sun, 13 Feb 2000 14:08:52 +0300 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: freebsd-hackers@FreeBSD.ORG References: <200002111641.LAA48618@dean.pc.sas.com> In-Reply-To: <200002111641.LAA48618@dean.pc.sas.com> MIME-Version: 1.0 Message-Id: <00021314111301.00418@newbee.web2000.ru> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > struct seminfo seminfo = { > SEMMAP, /* # of entries in semaphore map */ > SEMMNI, /* # of semaphore identifiers */ > SEMMNS, /* # of semaphores in system */ > SEMMNU, /* # of undo structures in system */ > SEMMSL, /* max # of semaphores per id */ > SEMOPM, /* max # of operations per semop call */ > SEMUME, /* max # of undo entries per process */ > SEMUSZ, /* size in bytes of undo structure */ > SEMVMX, /* semaphore maximum value */ > SEMAEM /* adjust on exit max value */ > }; > You probably want to increase either SEMMNI or SEMMNS. I've noticed that but why are they so "round"? Is there any corelation between all these numbers? I don't want to break my kernel by guessing. > > options SEMMAP=31 > > options SEMMNI=11 > > options SEMMNS=61 > > options SEMMNU=31 > > options SEMMSL=61 > > options SEMOPM=101 > > options SEMUME=11 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message