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 20:40:23 -0400
Message-ID: <18252.1050712823@sss.pgh.pa.us> (raw)
In-Reply-To: <20030418220942.GK79923@perrin.int.nxad.com>
References: <20030317232640.GV23355@perrin.int.nxad.com>
<000d01c30559$f9e41b10$6401a8c0@DDP7NX01>
<20030418201826.GD79923@perrin.int.nxad.com>
<14484.1050702746@sss.pgh.pa.us>
<20030418220942.GK79923@perrin.int.nxad.com>
Sean Chittenden <sean@chittenden.org> writes:
> I know they're 8K, but going off of the hint from postgresql.conf, I
> changed it to 16K instead of 2 * 8K:
> #shared_buffers = 64 # 2*max_connections, min 16, typically 8KB each
> Each shared buffer is 8K, need two shared buffers per connection is
> how I read that comment.
It's not very well phrased then. I just updated the comments to look
like this:
#shared_buffers = 64 # min 16, at least max_connections*2, 8KB each
#max_locks_per_transaction = 64 # min 10, ~260*max_connections bytes each
#wal_buffers = 8 # min 4, 8KB each
# fsm = free space map
#max_fsm_relations = 1000 # min 100, ~50 bytes each
#max_fsm_pages = 20000 # min max_fsm_relations*16, 6 bytes each
# note: increasing max_connections also costs about 500 bytes each,
# in addition to costs from shared_buffers and max_locks_per_transaction.
The multipliers for max_connections and max_locks_per_transaction are
based on some experiments I just did (alter parameter, note change in
size of shared memory block...). They're probably somewhat
architecture-dependent, but these should be close enough for the purpose.
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: <18252.1050712823@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> <20030418220942.GK79923@perrin.int.nxad.com> <18252.1050712823@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