pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Ramsey <pramsey@refractions.net>
To: Doug Y <dylists@ptd.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: The never ending quest for clarity on shared_buffers
Date: Wed, 06 Oct 2004 15:26:47 -0700
Message-ID: <41647127.3060407@refractions.net> (raw)
In-Reply-To: <6.1.2.0.2.20041006152747.033bcd50@pop.traderonline.com>
References: <6.1.2.0.2.20041006152747.033bcd50@pop.traderonline.com>

Doug Y wrote:

>   For idle persistent connections, do each of them allocate the memory 
> specified by this setting (shared_buffers * 8k), or is it one pool used 
> by all the connection (which seems the logical conclusion based on the 
> name SHARED_buffers)? Personally I'm more inclined to think the latter 
> choice, but I've seen references that alluded to both cases, but never a 
> definitive answer.

The shared_buffers are shared (go figure) :).  It is all one pool shared 
by all connections.  The sort_mem and vacuum_mem are *per*connection* 
however, so when allocating that size you have to take into account your 
expected number of concurrent connections.

Paul



view thread (3+ messages)  latest in thread

Message-ID: <41647127.3060407@refractions.net>
Permalink:  ../41647127.3060407@refractions.net/
Also on:    postgresql.org/message-id/41647127.3060407@refractions.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pramsey@refractions.net, dylists@ptd.net
  Subject: Re: The never ending quest for clarity on shared_buffers
  In-Reply-To: <41647127.3060407@refractions.net>

* 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