Re: Docs about buffers and sortmem setting

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Docs about buffers and sortmem setting
Date: 2002-11-14 11:56:14
Message-ID: 20021114065614.B2982@mail.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Nov 14, 2002 at 10:43:44AM +0100, Ryszard Lach wrote:
> Hi!
>
> I've seen on this list some calculations concerning buffers and sort_mem
> settings. Could you tell me if there is a document about such a
> calculation? I'd like to use nearly all of my RAM for postgres.

Probably that's not true. You'll likely cause swapping if you try
to.

The general rule of thumb is to try about 25% of physical memory for
your buffer size. Some people like to increase from there, until
swapping starts, and then back off; but there are arguments against
doing this, given the efficiency of modern filesystem buffering.

In practice, a buffer size in the tens of thousands is probably
adequate. We actually have discovered long-term negative performance
effects if the buffers are set too large.

A

--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Bjoern Metzdorf 2002-11-14 12:19:57 Re: Docs about buffers and sortmem setting
Previous Message Shridhar Daithankar 2002-11-14 10:28:17 Re: [GENERAL] Upgrade to dual processor machine?