From: Bruce Momjian <bruce@momjian.us>
To: Claudio Freire <klaussfreire@gmail.com>
Cc: Julien Cigar <jcigar@ulb.ac.be>
Cc: pgsql-performance@postgresql.org
Subject: Re: shared_buffers/effective_cache_size on 96GB server
Date: Wed, 10 Oct 2012 13:56:39 -0400
Message-ID: <20121010175639.GH11892@momjian.us> (raw)
In-Reply-To: <CAGTBQpZ0E2xyAeNZy6a4uyhzyfhSNMv3TRDeLWdeT16RYYMPOg@mail.gmail.com>
References: <CADKbJJUTr9ZWkbajR-7_6qaAsWH0=09=2AMo67C_Az-raKZE4w@mail.gmail.com>
<50752DB2.6060004@ulb.ac.be>
<20121010161012.GE11892@momjian.us>
<CAGTBQpZ0E2xyAeNZy6a4uyhzyfhSNMv3TRDeLWdeT16RYYMPOg@mail.gmail.com>
On Wed, Oct 10, 2012 at 02:05:20PM -0300, Claudio Freire wrote:
> On Wed, Oct 10, 2012 at 1:10 PM, Bruce Momjian <bruce@momjian.us> wrote:
> >> >shared_buffers = 10GB
> >>
> >> Generally going over 4GB for shared_buffers doesn't help.. some of
> >> the overhead of bgwriter and checkpoints is more or less linear in
> >> the size of shared_buffers ..
> >>
> >> >effective_cache_size = 90GB
> >>
> >> effective_cache_size should be ~75% of the RAM (if it's a dedicated server)
> >
> > Why guess? Use 'free' to tell you the kernel cache size:
> >
> > http://momjian.us/main/blogs/pgblog/2012.html#May_4_2012
>
> Why does nobody every mention that concurrent access has to be taken
> into account?
>
> Ie: if I expect concurrent access to 10 really big indices, I'll set
> effective_cache_size = free ram / 10
It is true that the estimate assumes a single session is using all the
cache, but I think that is based on the assumion is that there is a
major overlap between the cache needs of multiple sessions.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: bruce@momjian.us, klaussfreire@gmail.com, jcigar@ulb.ac.be
Subject: Re: shared_buffers/effective_cache_size on 96GB server
In-Reply-To: <20121010175639.GH11892@momjian.us>
References: <CADKbJJUTr9ZWkbajR-7_6qaAsWH0=09=2AMo67C_Az-raKZE4w@mail.gmail.com> <50752DB2.6060004@ulb.ac.be> <20121010161012.GE11892@momjian.us> <CAGTBQpZ0E2xyAeNZy6a4uyhzyfhSNMv3TRDeLWdeT16RYYMPOg@mail.gmail.com> <20121010175639.GH11892@momjian.us>
* 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