pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: John D. Burger <john@mitre.org>
Cc: pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: max_connections
Date: Mon, 29 Aug 2005 15:00:39 -0400
Message-ID: <11795.1125342039@sss.pgh.pa.us> (raw)
In-Reply-To: <5c420b4517009f2ae9c0214f9851794d@mitre.org>
References: <5c420b4517009f2ae9c0214f9851794d@mitre.org>

"John D. Burger" <john@mitre.org> writes:
> I'm now fiddling with some of the performance parameters, and I'm 
> wondering about max_connections.  The default appears to be 100 - this 
> is at least an order of magnitude higher than I need.  Would much be 
> saved by dropping this down to 10 or less?

Nothing at all, really, AFAIK; just a little bit of shared memory.

On certain platforms (OS X at least) there is a penalty to oversized
max_connections because each per-backend-slot semaphore is an open file
that has to be passed down when a new backend process is forked.  But
this is not true on Solaris.  I doubt you'd see any difference.

			regards, tom lane



view thread (22+ messages)  latest in thread

Message-ID: <11795.1125342039@sss.pgh.pa.us>
Permalink:  ../11795.1125342039@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11795.1125342039@sss.pgh.pa.us

 · 

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, john@mitre.org
  Subject: Re: max_connections
  In-Reply-To: <11795.1125342039@sss.pgh.pa.us>
  References: <5c420b4517009f2ae9c0214f9851794d@mitre.org> <11795.1125342039@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