Re: Load Distributed Checkpoints, take 3

From: Greg Smith <gsmith(at)gregsmith(dot)com>
To: Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Load Distributed Checkpoints, take 3
Date: 2007-06-26 17:59:50
Message-ID: Pine.GSO.4.64.0706260039110.12069@westnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Mon, 25 Jun 2007, Tom Lane wrote:

> right now, BgBufferSync starts over from the current clock-sweep point
> on each call --- that is, each bgwriter cycle. So it can't really be
> made to write very many buffers without excessive CPU work. Maybe we
> should redefine it to have some static state carried across bgwriter
> cycles

The LRU portion restarts like that, and it's certainly not optimal. But
the auto-tuning LRU patch that's already near application makes this much
less of an issue because it only does real work when buffers have been
allocated, so the sweep point will have moved along. I'll add this idea
to my list of things that would be nice to have as part of a larger
rewriter, I think it's more trouble than it's worth to chase right now.

--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Greg Smith 2007-06-26 18:22:16 Re: Load Distributed Checkpoints, take 3
Previous Message Tom Lane 2007-06-26 17:57:56 Re: Load Distributed Checkpoints, take 3