Re: Optimization

From: "Nick Fankhauser" <nickf(at)ontko(dot)com>
To: "Justin Long" <justinlong(at)strategicnetwork(dot)org>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Optimization
Date: 2003-07-28 18:39:09
Message-ID: NEBBLAAHGLEEPCGOBHDGOEHOHNAA.nickf@ontko.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

>Can someone tell me what effective_cache_size should be set to?

You may be able to intuit this from my last post, but if I understand
correctly, what you should be doing is estimating how much memory is likely
to be "left over" for the OS to do disk caching with after all of the basic
needs of the OS, PostgreSQL & any other applications are taken care of. You
then tell postgresql what to expect in terms of caching resources by putting
this number into effective_cache_size, and this allows the query planner
come up with a strategy that is optimized for the expected cache size.

So the "formula" would be: Figure out how much memory is normally in use
allowing adequate margins, subtract this from your total RAM, and make the
remainder your effective_cache size.

-Nick

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Berkus 2003-07-28 19:27:44 Re: Optimization
Previous Message Nick Fankhauser 2003-07-28 18:28:34 Re: Optimization