From owner-freebsd-questions@FreeBSD.ORG Mon Aug 11 13:11:22 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 4142F37B401 for ; Mon, 11 Aug 2003 13:11:22 -0700 (PDT) Received: from aviti.net (aviti.net [217.144.68.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7128343F85 for ; Mon, 11 Aug 2003 13:11:21 -0700 (PDT) (envelope-from life@zone3000.net) Received: from zone3000.kharkov.ua ([217.144.68.98] helo=adserver.zone3000.net) by aviti.net with esmtp (Exim 4.14) id 19mJ0c-000BcD-66 for questions@freebsd.org; Mon, 11 Aug 2003 23:11:14 +0300 Received: from narik ([10.1.1.36]) by adserver.zone3000.net with Microsoft SMTPSVC(5.0.2195.6713); Mon, 11 Aug 2003 23:17:11 +0300 Message-ID: <013e01c36044$b6ca26d0$2401010a@zone3000.net> From: "Vitali Malicky" To: References: <20030811160516.A13133@tehran> Date: Mon, 11 Aug 2003 23:11:13 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-OriginalArrivalTime: 11 Aug 2003 20:17:11.0531 (UTC) FILETIME=[8C0F03B0:01C36045] X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *19mJ0c-000BcD-66*megd8SaryGM* Subject: Re: semaphores X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Vitali Malicky List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2003 20:11:22 -0000 > Hi, Hi! > I was installing perl 5.8 and it would fails. Lost the error message, sorry. > However, running a google search on the error message gave only one > result suggesting that my system was running out of semaphores. So, > `ipcs` showed that postgresql was using them and so stopping this db allowed > perl to be installed. > > Now I can run both perl5.8 and postgresql, but, how do I know whether my > system is low on semaphores, and if so, how do I increase it ? rebuild the kernel with options like these (take mine for exmaple) ### options SYSVSHM #SYSV-style shared memory options SHMMAXPGS=65535 ### for Oracle... options SHMALL=8192 options SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)" options SHMMIN=2 options SHMMNI=512 ### for Oracle... options SHMSEG=512 ### for Oracle... ### options SYSVSEM #SYSV-style semaphore options SEMMAP=512 options SEMMNI=512 ### for Oracle... options SEMUME=512 options SEMMNS=1024 ### for Oracle... options SEMMNU=512 options SEMMSL=256 ### for Oracle... options SEMOPM=256 ### options SYSVMSG #SYSV-style messages. options MSGMNB=16384 options MSGMNI=256 options MSGSEG=8196 options MSGSSZ=16 options MSGTQL=256 read www.freebsd.org and LINT for more info -- Error Code=-1 Continue? Yes | No -- > Here are some outputes: > uname -a: FreeBSD 4.8-STABLE > ipcs : > farhad@tehran [/home/pars/perl] > $ ipcs > Message Queues: > T ID KEY MODE OWNER GROUP > > Shared Memory: > T ID KEY MODE OWNER GROUP > m 65536 5432001 --rw------- pgsql pgsql > > Semaphores: > T ID KEY MODE OWNER GROUP > s 131072 5432001 --rw------- pgsql pgsql > s 131073 5432002 --rw------- pgsql pgsql > s 131074 5432003 --rw------- pgsql pgsql > > Thanks. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"