pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rick Apichairuk <rapichai@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: FreeBSD 5.2.1, postgresql 7.4.5 and shared memory settings
Date: Sun, 30 Jan 2005 18:36:54 -0500
Message-ID: <9776bb6605013015361b75cddf@mail.gmail.com> (raw)
In-Reply-To: <9a0c82c605013013555f92eee8@mail.gmail.com>
References: <9776bb66050130122122a3e342@mail.gmail.com>
	<20050130205021.GA14588@guests.deus.net>
	<9776bb660501301326565859a3@mail.gmail.com>
	<9a0c82c605013013555f92eee8@mail.gmail.com>

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 <pglist@gmail.com> 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)
>



view thread (12+ messages)  latest in thread

Message-ID: <9776bb6605013015361b75cddf@mail.gmail.com>
Permalink:  ../9776bb6605013015361b75cddf@mail.gmail.com/
Also on:    postgresql.org/message-id/9776bb6605013015361b75cddf@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rapichai@gmail.com, pgsql-general@postgresql.org
  Subject: Re: FreeBSD 5.2.1, postgresql 7.4.5 and shared memory settings
  In-Reply-To: <9776bb6605013015361b75cddf@mail.gmail.com>
  References: <9776bb66050130122122a3e342@mail.gmail.com> <20050130205021.GA14588@guests.deus.net> <9776bb660501301326565859a3@mail.gmail.com> <9a0c82c605013013555f92eee8@mail.gmail.com> <9776bb6605013015361b75cddf@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox