pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <gsmith@gregsmith.com>
To: pgsql-performance@postgresql.org
Subject: Re: Question about memory allocations
Date: Thu, 12 Apr 2007 22:50:08 -0400 (EDT)
Message-ID: <Pine.GSO.4.64.0704122238580.29657@westnet.com> (raw)
In-Reply-To: <Pine.GSO.4.64.0704101458290.17955@kittyhawk.tanabi.org>
References: <233A9987-ABA5-4491-A304-FDA1F8FCD962@gmail.com>
	<14019.1176155022@sss.pgh.pa.us>
	<22512E5C-A60F-43E7-A370-257F7AF956FD@gmail.com>
	<16374.1176171185@sss.pgh.pa.us>
	<D14BB823-DA04-453C-AD70-248B34F1307B@gmail.com>
	<25200.1176213242@sss.pgh.pa.us>
	<FCEF7DE2-913F-4C36-B117-8363EDE39BF3@gmail.com>
	<26925.1176221294@sss.pgh.pa.us>
	<Pine.GSO.4.64.0704101458290.17955@kittyhawk.tanabi.org>

On Tue, 10 Apr 2007, Steve wrote:

> - I've set up a configuration (I'll show important values below), and I"m 
> wondering if there's any way I can actually see the distribution of memory in 
> the DB and how the memory is being used.

I didn't notice anyone address this for you yet.  There is a tool in 
contrib/pg_buffercache whose purpose in life is to show you what the 
shared buffer cache has inside it.  The documentation in that directory 
leads through installing it.  The additional variable you'll likely never 
know is what additional information is inside the operating system's 
buffer cache.

> # Leaving this low makes the DB complain, but I'm not sure what's # 
> reasonable.
> checkpoint_segments = 128

That's a reasonable setting for a large server.  The main downside to 
setting it that high is longer recovery periods after a crash, but I doubt 
that's a problem for you if you're so brazen as to turn off fsync.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD



view thread (11+ messages)  latest in thread

Message-ID: <Pine.GSO.4.64.0704122238580.29657@westnet.com>
Permalink:  ../Pine.GSO.4.64.0704122238580.29657@westnet.com/
Also on:    postgresql.org/message-id/Pine.GSO.4.64.0704122238580.29657@westnet.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: gsmith@gregsmith.com
  Subject: Re: Question about memory allocations
  In-Reply-To: <Pine.GSO.4.64.0704122238580.29657@westnet.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