pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Miles <chris_pg002@psychofx.com>
To: pgsql-admin@postgresql.org
Cc: Chris Miles <chris_pg002@psychofx.com>
Subject: PostgreSQL settings for 12GB RAM
Date: Mon, 7 Jul 2003 19:02:46 +0100
Message-ID: <20030707190246.A30074@psychofx.com> (raw)

Hi admins,

We are running production PostgreSQL (7.2.3) servers on beefy
systems: 4x Xeon 1.4GHz; and 12GB of RAM.

We are trying to determine optimal settings for
shared_buffers and the other memory-related performance
tunables, to make the best use of our 12GB.  But we are not
sure what limits we may hit, so we are trying to take care.

The systems are Redhat Linux 7.3 / 2.4.20-18.7bigmem

Currently our settings are:

/proc/sys/kernel/shmall
536870912
/proc/sys/kernel/shmmax 
536870912

postgresql.conf:
shared_buffers = 32768
max_connections = 768
max_fsm_relations = 100 [default]
max_fsm_pages = 10000 [default]
wal_buffers = 32
sort_mem = 2048
vacuum_mem = 32768
wal_files = 32
checkpoint_segments = 10
effective_cache_size = 1000

This currently gives us 256 MB of PG shared buffers, which
still seems way too conservative given the amount of RAM
we have to play with.

Is there a limit on shmall/shmmax and how big we can make
shared_buffers ?  Or should we just go ahead and give it
4, 6 or 8 GB of shared memory ?

These servers are already quite busy, are serving multiple
databases on each (one postgresql instance on each) with
.../data/base/ at about 16GB in size currently (growing all
the time).

The kernel happily chews up all available RAM for I/O
buffers, which is nice - but how much RAM is better utilized
by PG shared buffers rather than kernel buffers ?

If it matters, all data storage lives on dedicated Netapps
and is accessed by NFS.  This is not a performance issue
(despite what you may think) and is done to provide HA
failover using heartbeat.

Any tuning tips for servers this large would be appreciated.

Cheers
CM

-- 
Chris Miles
http://chrismiles.info/



view thread (3+ messages)  latest in thread

Message-ID: <20030707190246.A30074@psychofx.com>
Permalink:  ../20030707190246.A30074@psychofx.com/
Also on:    postgresql.org/message-id/20030707190246.A30074@psychofx.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 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: chris_pg002@psychofx.com
  Subject: Re: PostgreSQL settings for 12GB RAM
  In-Reply-To: <20030707190246.A30074@psychofx.com>
  References: <20030707190246.A30074@psychofx.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