From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Cc: Alex Hochberger <alex@dsgi.us>
Subject: Re: Configuring a Large RAM PostgreSQL Server
Date: Thu, 29 Nov 2007 21:50:14 -0800
Message-ID: <200711292150.14545.josh@agliodbs.com> (raw)
In-Reply-To: <C78952BC-8F12-486E-9BD3-368EFAF448AD@dsgi.us>
References: <C78952BC-8F12-486E-9BD3-368EFAF448AD@dsgi.us>
Alex,
> The new machine will have 48 GB of RAM, so figuring out starting
> points for the Shared Buffers and Work_mem/Maintenance_work_mem is
> going to be a crap shoot, since the defaults still seem to be based
> upon 256MB of RAM or less.
Why a crap shoot?
Set shared_buffers to 12GB. Set work_mem to 20GB / # of concurrent active
connections (check your logs). Set Maint_mem to 2GB (I don't think we can
actually use more). Then tune from there.
Also, use 8.2 or later, and you'd better compile 64-bit.
--
Josh Berkus
PostgreSQL @ Sun
San Francisco
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: josh@agliodbs.com, alex@dsgi.us
Subject: Re: Configuring a Large RAM PostgreSQL Server
In-Reply-To: <200711292150.14545.josh@agliodbs.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