From: Nick Fankhauser <nickf@ontko.com>
To: Justin Long <justinlong@strategicnetwork.org>
To: pgsql-performance@postgresql.org
Subject: Re: Optimization
Date: Mon, 28 Jul 2003 13:39:09 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGOEHOHNAA.nickf@ontko.com> (raw)
In-Reply-To: <000f01c35523$f13dee90$ecd36044@tarzan>
>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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: nickf@ontko.com, justinlong@strategicnetwork.org
Subject: Re: Optimization
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGOEHOHNAA.nickf@ontko.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox