Re: BGWriter latch, power saving - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: BGWriter latch, power saving
Date
Msg-id CA+U5nM+8FKhOhGM++E48zaqTOSDmKkdTjRN5tw=bghYCTkSBhw@mail.gmail.com
Whole thread Raw
In response to Re: BGWriter latch, power saving  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
On Wed, Jan 4, 2012 at 7:24 AM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:

> Setting a latch that's already set is fast,
> but surely it's even faster to not even try.

Agreed. I think we should SetLatch() at the first point a backend
writes a dirty buffer because the bgwriter has been inactive.

Continually waking the bgwriter makes it harder for it to return to sleep.

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


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: BGWriter latch, power saving
Next
From: Simon Riggs
Date:
Subject: Re: 16-bit page checksums for 9.2