Re: shared_buffer advice

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: AI Rumman <rummandba(at)gmail(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: shared_buffer advice
Date: 2010-06-14 13:19:14
Message-ID: 4C162C52.8040401@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

AI Rumman wrote:
> I have a server with Dual-Core 4 cpu and 32 GB RAM.
> This is the database server. Only Postgresql 8.1 is running on it with
> multiple databases.
> How should I plan for shared_buffers and effective cache size?

Set shared_buffers very low--at most 128MB--because you're running
PostgreSQL 8.1. If you upgrade to 8.3 or later, which you should, you
might explore higher values. On 8.1 and 8.2, trying to use any large
size for shared_buffers makes the whole database freeze under any sort
of heavy write load when checkpoints happen.

The first question you should be asking is not "how can I tune the
parameters on my 8.1 server?", it should be "how can I upgrade this 8.1
server to a newer version?". That's not always possible, because some
8.1 applications won't run on 8.3 or later without changes to them. But
moving onto 8.3 is by far a better way to get better performance from
your system than trying to tune 8.1.

--
Greg Smith 2ndQuadrant US Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.us

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2010-06-14 13:20:56 Re: Hosting without pgcrypto functions. There are other solutions?
Previous Message Raymond O'Donnell 2010-06-14 13:15:54 Re: Re: Moving a live production database to different server and postgres release