From: Merlin Moncure <mmoncure@gmail.com>
To: Jeff Davis <pgsql@j-davis.com>
Cc: postgres performance list <pgsql-performance@postgresql.org>
Subject: Re: The shared buffers challenge
Date: Tue, 31 May 2011 08:57:43 -0500
Message-ID: <BANLkTimu7NWGziDqHWE8CXkWR11ahPVw9g@mail.gmail.com> (raw)
In-Reply-To: <1306541941.32559.119.camel@jdavis-ux.asterdata.local>
References: <BANLkTimPC-K_o8XNn1hK4ZgBrTGO_Z6RDw@mail.gmail.com>
<1306541941.32559.119.camel@jdavis-ux.asterdata.local>
On Fri, May 27, 2011 at 7:19 PM, Jeff Davis <pgsql@j-davis.com> wrote:
> On Thu, 2011-05-26 at 09:31 -0500, Merlin Moncure wrote:
>> Where they are most helpful is for masking of i/o if
>> a page gets dirtied >1 times before it's written out to the heap
>
> Another possible benefit of higher shared_buffers is that it may reduce
> WAL flushes. A page cannot be evicted from shared_buffers until the WAL
> has been flushed up to the page's LSN ("WAL before data"); so if there
> is memory pressure to evict dirty buffers, it may cause extra WAL
> flushes.
>
> I'm not sure what the practical effects of this are, however, but it
> might be an interesting thing to test.
Hm, I bet it could make a fairly big difference if wal data is not on
a separate volume.
merlin
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: mmoncure@gmail.com, pgsql@j-davis.com
Subject: Re: The shared buffers challenge
In-Reply-To: <BANLkTimu7NWGziDqHWE8CXkWR11ahPVw9g@mail.gmail.com>
References: <BANLkTimPC-K_o8XNn1hK4ZgBrTGO_Z6RDw@mail.gmail.com> <1306541941.32559.119.camel@jdavis-ux.asterdata.local> <BANLkTimu7NWGziDqHWE8CXkWR11ahPVw9g@mail.gmail.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