Re: Reducing bgwriter wakeups

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Reducing bgwriter wakeups
Date: 2012-02-19 21:11:56
Message-ID: CA+U5nMJrneojRrgapDA+9XYUKFh=i1MESrgPFdg1X=5ZLPbY3g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Feb 19, 2012 at 8:15 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Sun, Feb 19, 2012 at 1:53 PM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
>> Recent changes for power reduction mean that we now issue a wakeup
>> call to the bgwriter every time we set a hint bit.
>>
>> However cheap that is, its still overkill.
>>
>> My proposal is that we wakeup the bgwriter whenever a backend is
>> forced to write a dirty buffer, a job the bgwriter should have been
>> doing.
>>
>> This significantly reduces the number of wakeup calls and allows the
>> bgwriter to stay asleep even when very light traffic happens, which is
>> good because the bgwriter is often the last process to sleep.
>>
>> Seems useful to have an explicit discussion on this point, especially
>> in view of recent performance results.
>
> I don't see what this has to do with recent performance results, so
> please elaborate.  Off-hand, I don't see any point in getting cheap.
> It seems far more important to me that the background writer become
> active when needed than that we save some trivial amount of power by
> waiting longer before activating it.

Then you misunderstand, since I am advocating waking it when needed.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2012-02-19 21:18:07 Re: pgsql: Improve pretty printing of viewdefs.
Previous Message Robert Haas 2012-02-19 20:15:38 Re: Reducing bgwriter wakeups