pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-performance@postgresql.org
To: Claire Chang <yenhsiac@yahoo.com>
Subject: Re: Postgres 8.4 memory related parameters
Date: Thu, 04 Aug 2011 15:38:35 -0500
Message-ID: <4E3ABCFB020000250003FAF4@gw.wicourts.gov> (raw)
In-Reply-To: <1312489633.71838.YahooMailClassic@web31912.mail.mud.yahoo.com>
References: <1312489633.71838.YahooMailClassic@web31912.mail.mud.yahoo.com>

Claire Chang <yenhsiac@yahoo.com> wrote:
 
> hi, We recently bought a 4 8core 128G memory database server and I
> am setting it up to replace our old 4 4cores 128G memory database
> server as a master.  The memory related settings that we use on
> the old machine seem a bit wrong according to the experts on IRC:
 
> max_connections = 600
 
You're probably going to get better performance by setting that to 2
to 3 times the number of actual cores (don't county hyperthreading
for this purpose), and using a connection pooler to funnel the 600
user connections down to a smaller number of database connections.
 
> shared_buffers = 32GB
 
I seem to remember seeing some benchmarks showing that performance
falls off after 10GB or 20GB on that setting.
 
> effective_cache_size = 64GB
 
Seems sane.
 
> work_mem = 5MB
 
You could bump that up, especially if you go to the connection pool.
 
> maintenance_work_mem = 1GB
 
OK, but I might double that.
 
> wal_buffers = 64kB
 
This should definitely be set to 16MB.
 
-Kevin



view thread (14+ messages)  latest in thread

Message-ID: <4E3ABCFB020000250003FAF4@gw.wicourts.gov>
Permalink:  ../4E3ABCFB020000250003FAF4@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4E3ABCFB020000250003FAF4@gw.wicourts.gov

 · 

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-performance@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, yenhsiac@yahoo.com
  Subject: Re: Postgres 8.4 memory related parameters
  In-Reply-To: <4E3ABCFB020000250003FAF4@gw.wicourts.gov>
  References: <1312489633.71838.YahooMailClassic@web31912.mail.mud.yahoo.com> <4E3ABCFB020000250003FAF4@gw.wicourts.gov>

* 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