From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sean Chittenden <sean@chittenden.org>
Cc: Babak Badaei <babak@hemaka.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: max_connections limit
Date: Fri, 18 Apr 2003 17:52:26 -0400
Message-ID: <14484.1050702746@sss.pgh.pa.us> (raw)
In-Reply-To: <20030418201826.GD79923@perrin.int.nxad.com>
References: <20030317232640.GV23355@perrin.int.nxad.com>
<000d01c30559$f9e41b10$6401a8c0@DDP7NX01>
<20030418201826.GD79923@perrin.int.nxad.com>
Sean Chittenden <sean@chittenden.org> writes:
> I wonder how correct the following is:
> SHMMAXPGS = ((max_connections * shared_buffers * 16K) + (wal_buffers *
> 8K) + (max_fsm_relations * 40B) + (max_fsm_pages * 6B)) /
> page_size
Not very. shared_buffers are 8K apiece, not 16K, and you don't multiply
them by max_connections. There *is* a multiplier for max_connections
but I'm not sure what it is --- less than 1K, probably. Also you should
allow for the lock table, which will be some small multiplier times
max_connections * max_locks_per_transaction.
> SEMMNI = 2 * max_connections (????)
> SEMMSL = SEMMNI
> SHMSEG = 10 # (???? this is a per SysV process setting)
> SEMMNS = 1.5 * max_connections (????)
> SEMMNU = 0.75 * max_connections (????)
> SEMUME = 10 (????)
Dunno where you got these semaphore numbers from, either.
regards, tom lane
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: tgl@sss.pgh.pa.us, sean@chittenden.org, babak@hemaka.com
Subject: Re: max_connections limit
In-Reply-To: <14484.1050702746@sss.pgh.pa.us>
References: <20030317232640.GV23355@perrin.int.nxad.com> <000d01c30559$f9e41b10$6401a8c0@DDP7NX01> <20030418201826.GD79923@perrin.int.nxad.com> <14484.1050702746@sss.pgh.pa.us>
* 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