From owner-freebsd-questions@FreeBSD.ORG Fri May 23 06:42:53 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A592837B401 for ; Fri, 23 May 2003 06:42:53 -0700 (PDT) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1a-215.pit.adelphia.net [24.53.170.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1EE843FAF for ; Fri, 23 May 2003 06:42:52 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) h4NDgp0n019124; Fri, 23 May 2003 09:42:52 -0400 (EDT) (envelope-from wmoran@potentialtech.com) Message-ID: <3ECE255B.5080009@potentialtech.com> Date: Fri, 23 May 2003 09:42:51 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vladimir Sysoev References: <3ECE2187.7030809@unim.ru> In-Reply-To: <3ECE2187.7030809@unim.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: About semaphores X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2003 13:42:54 -0000 Vladimir Sysoev wrote: > I install Iserverd on my FreeBSD 4.6 server and it reports to > /var/log/messages : Not enough semaphores. change kernel parameters. > > I try to use sysctl kern.ipc... but these parameters are read only. > > 1. Does anybody know about how to increase maximum semaphores counts? > 2. Where can I obtain information about kernel(sysctl) parameters (books > manuals and others). The only way I know of is to compile a custom kernel. See /usr/src/sys/i386/conf/LINT for information on semaphore settings. Also, the PostgreSQL folks use semaphores a lot and have some documentation on how to get enough semaphores (and other shared memory) on FreeBSD for different needs. If you install the PostgreSQL port, it installs the file /usr/local/pgsql/post-install-notes which has information on how to jack up shared memory usage (including semaphores). This file is likely to be available on the web as well. -- Bill Moran Potential Technologies http://www.potentialtech.com