From owner-freebsd-hackers Fri Feb 11 8:42:45 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by builder.freebsd.org (Postfix) with ESMTP id DB2633D79 for ; Fri, 11 Feb 2000 08:42:35 -0800 (PST) Received: from mozart (mozart.unx.sas.com [192.58.184.28]) by lamb.sas.com (8.9.3/8.9.1) with SMTP id LAA21091; Fri, 11 Feb 2000 11:42:16 -0500 (EST) Received: from dean.pc.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA23242; Fri, 11 Feb 2000 11:41:46 -0500 Received: (from brdean@localhost) by dean.pc.sas.com (8.9.3/8.9.1) id LAA48618; Fri, 11 Feb 2000 11:41:46 -0500 (EST) (envelope-from brdean) From: Brian Dean Message-Id: <200002111641.LAA48618@dean.pc.sas.com> Subject: Re: Tuning up semaphores in kernel In-Reply-To: <00021114101000.00662@newbee.web2000.ru> from Andrey Novikov at "Feb 11, 2000 02:01:49 pm" To: Andrey Novikov Date: Fri, 11 Feb 2000 11:41:45 -0500 (EST) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Take a look at: sys/conf/param.c: /* * Values in support of System V compatible semaphores. */ #ifdef SYSVSEM 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 */ }; #endif You probably want to increase either SEMMNI or SEMMNS. Andrey Novikov wrote: > Resently my PostgreSQL daemon died with: > IpcSemaphoreCreate: semget failed (No space left on device) key=5432015, num=16, permission=600 > > I figured out that the kernel is out of available semaphores, > I wanted to rebuild it but the problem is that the options > related to semaphores are not documented. This is the mission > critical commercial server so I don't want just to make assumptions. > Can you please tell me how these all enigmatic numbers are > properly choosed: > 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