Re: bgwriter and checkpoints - Mailing list pgsql-hackers

From Robert Haas
Subject Re: bgwriter and checkpoints
Date
Msg-id CA+TgmoZLAj_RocmgtTXJ=zy0JJpKUDuDkB_Xv0KG3+xCH0W51A@mail.gmail.com
Whole thread Raw
In response to Re: bgwriter and checkpoints  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Fri, Aug 12, 2011 at 9:33 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
> Yes, they would still need to talk. But the good news is that they
> only actually need to talk once per checkpoint cycle so we can buffer
> them to a certain extent in shared memory to remove the worst part of
> such contention.

Yeah, some kind of special-purpose communication method between the
cleaning scan and the checkpoint process might help, if the lock
contention turns out to be a problem in practice.  Then again, maybe
I'm overthinking things: there's zero sign in any profiling I've done
that BgWriterCommLock is even mildly contended, so even worrying about
it at this point might be a waste of time.

> Checkpointing needs a little more time in its diary to receive those
> messages than it has right now, so there's no easy route.

Yeah.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: bgwriter and checkpoints
Next
From: Robert Haas
Date:
Subject: Re: WIP: Fast GiST index build