Re: Configuring a Large RAM PostgreSQL Server

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Cc: Alex Hochberger <alex(at)dsgi(dot)us>
Subject: Re: Configuring a Large RAM PostgreSQL Server
Date: 2007-11-30 05:50:14
Message-ID: 200711292150.14545.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Russell Smith 2007-11-30 06:41:53 Re: TB-sized databases
Previous Message Mark Kirkwood 2007-11-29 23:31:01 Re: TB-sized databases