Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

Next:From: Josh BerkusDate: 2003-07-28 19:27:44
Subject: Re: Optimization
Previous:From: Nick FankhauserDate: 2003-07-28 18:28:34
Subject: Re: Optimization

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group