X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C38DF11F7DAE; Sun, 2 Apr 2006 16:34:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25574-10; Sun, 2 Apr 2006 16:34:49 -0300 (ADT) Received: from hub.org (hub.org [200.46.204.220]) by postgresql.org (Postfix) with ESMTP id BEDC811F7DC5; Sun, 2 Apr 2006 16:34:48 -0300 (ADT) Received: from localhost (av.hub.org [200.46.204.144]) by hub.org (Postfix) with ESMTP id DFB4C823C6D; Sun, 2 Apr 2006 16:34:46 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25725-03; Sun, 2 Apr 2006 16:34:47 -0300 (ADT) Received: from ganymede.hub.org (blk-222-82-85.eastlink.ca [24.222.82.85]) by hub.org (Postfix) with ESMTP id CC388823C6B; Sun, 2 Apr 2006 16:34:44 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1000) id 720D234CC1; Sun, 2 Apr 2006 16:34:48 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 6D65D3464E; Sun, 2 Apr 2006 16:34:48 -0300 (ADT) Date: Sun, 2 Apr 2006 16:34:48 -0300 (ADT) From: "Marc G. Fournier" X-X-Sender: scrappy@ganymede.hub.org To: "Marc G. Fournier" cc: pgsql-admin@postgresql.org Subject: Re: semctl(): Invalid argument In-Reply-To: <20060402143109.T947@ganymede.hub.org> Message-ID: <20060402163341.P947@ganymede.hub.org> References: <20060402143109.T947@ganymede.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.586 required=5 tests=[AWL=0.107, DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.586 X-Spam-Level: X-Archive-Number: 200604/22 X-Sequence-Number: 21191 It looks like moving to FreeBSD 6.x for some of our servers is biting me in the butt ... they "broke" something with semaphores that used to work with 4.x, so that you can't run two postmasters on port 5432 within two seperate jails ... :( On Sun, 2 Apr 2006, Marc G. Fournier wrote: > > What would cause the following? > > # psql -U pgsql -l > psql: FATAL: semctl(327686, 3, SETVAL, 0) failed: Invalid argument > > The server is FreeBSD 6.1-PRERELEASE ... there are two jails running on it > ... both jails are running PostgreSQL 7.4 ... I have the kernel built with > enough semaphores: > > options SYSVSHM > options SHMMAXPGS=199608 > options SHMMAX=(SHMMAXPGS*PAGE_SIZE+1) > > options SYSVSEM > options SEMMNI=4096 > options SEMMNS=8192 > > options SYSVMSG # SYSV-style message queues > > And am definitely not using that many: > > (from ipcs -a): > ID KEY MODE OWNER GROUP CREATOR CGROUP > NSEMS OTIME CTIME s 393216 5432001 --rw------- 70 > 70 70 70 17 13:46:07 13:46:07 > s 393217 5432002 --rw------- 70 70 70 70 > 17 13:46:07 13:46:07 > s 393218 5432003 --rw------- 70 70 70 70 > 17 13:46:07 13:46:07 > s 393219 5432004 --rw------- 70 70 70 70 > 17 13:46:07 13:46:07 > s 393220 5432005 --rw------- 70 70 70 70 > 17 13:46:07 13:46:07 > s 393221 5432006 --rw------- 70 70 70 70 > 17 13:46:07 13:46:07 > s 393222 5432007 --rw------- 70 70 70 70 > 17 13:46:07 13:46:07 > > So figure there must be something else that I should be looking at ... > > Thanks ... > > ---- > Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) > Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664 > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664