Re: Load distributed checkpoint V3

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Greg Smith <gsmith(at)gregsmith(dot)com>, pgsql-patches(at)postgresql(dot)org, ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Subject: Re: Load distributed checkpoint V3
Date: 2007-04-05 19:39:28
Message-ID: 46155070.7000406@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Heikki Linnakangas <heikki(at)enterprisedb(dot)com> writes:
>> The number of buffers evicted by normal backends in a bgwriter_delay
>> period is simple to keep track of, just increase a counter in
>> StrategyGetBuffer and reset it when bgwriter wakes up. We can use that
>> as an estimate of X with some safety margin.
>
> You'd want some kind of moving-average smoothing in there, probably with
> a lot shorter ramp-up than ramp-down time constant, but this seems
> reasonable enough to try.

Ironically, I just noticed that we already have a patch in the patch
queue that implements exactly that, again by Itagaki. I need to start
paying more attention :-). Keep up the good work!

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Markus Schiltknecht 2007-04-05 20:00:37 Re: Auto Partitioning
Previous Message Heikki Linnakangas 2007-04-05 17:24:00 Re: Fix mdsync never-ending loop problem

Browse pgsql-patches by date

  From Date Subject
Next Message Markus Schiltknecht 2007-04-05 20:00:37 Re: Auto Partitioning
Previous Message Heikki Linnakangas 2007-04-05 17:24:00 Re: Fix mdsync never-ending loop problem