X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 529F640C21B for ; Sun, 30 Jan 2005 23:38:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50223-09 for ; Sun, 30 Jan 2005 23:38:22 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by svr1.postgresql.org (Postfix) with ESMTP id 71A6E40C22D for ; Sun, 30 Jan 2005 23:36:52 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 67so503114wri for ; Sun, 30 Jan 2005 15:36:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=idgdI9VAZiRJVtiXFmVuOyxBa2qHV9L3EsrqmkPS6O/t1Eqh/Bhkloxca5mts58ELsB4IZcEMvZ3vgIsoO08SbbAsIHpSuSQMA8L7NzzUbO3Kwb0I7n3i9pKXeGLaT4Q6acFJuqg0t+4qbe70c7vVDuLocpspHaDDSinrWOx318= Received: by 10.54.29.75 with SMTP id c75mr131389wrc; Sun, 30 Jan 2005 15:36:54 -0800 (PST) Received: by 10.54.48.2 with HTTP; Sun, 30 Jan 2005 15:36:54 -0800 (PST) Message-ID: <9776bb6605013015361b75cddf@mail.gmail.com> Date: Sun, 30 Jan 2005 18:36:54 -0500 From: Rick Apichairuk Reply-To: Rick Apichairuk To: pgsql-general@postgresql.org Subject: Re: FreeBSD 5.2.1, postgresql 7.4.5 and shared memory settings In-Reply-To: <9a0c82c605013013555f92eee8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <9776bb66050130122122a3e342@mail.gmail.com> <20050130205021.GA14588@guests.deus.net> <9776bb660501301326565859a3@mail.gmail.com> <9a0c82c605013013555f92eee8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200501/1773 X-Sequence-Number: 72722 I tried the settings you gave and they worked (with some caveats). After I recompiled the FreeBSD kernel with the options: options SYSVSHM options SYSVMSG options SYSVSEM options SHMMAXPGS=131072 options SEMMNI=128 options SEMMNS=512 options SEMUME=100 options SEMMNU=256 I rebooted and attempted to start postgresql and it failed again. I then ran sysctl -a to verify that the settings were correct. They were not. Regardless of what's configured in the kernel conf file, the default values were loaded. I had to edit my /etc/sysctl.conf and /boot/loader.conf file to get it to work. Which makes me wonder why the settings are even in the kernel conf file.... but that's not relevant to this list. But the values you provided did allow me to start up postgresql with max_connections set up to 479 (480 is too high and causes error). On Sun, 30 Jan 2005 13:55:35 -0800, Chris wrote: > I've tested this up to 250 connections on 5.3: > > options SHMMAXPGS=131072 > options SEMMNI=128 > options SEMMNS=512 > options SEMUME=100 > options SEMMNU=256 > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >