Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Hint Bits and Write I/O

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: List pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] Hint Bits and Write I/O
Date: 2008-06-30 22:43:01
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-patches
On Fri, 2008-06-27 at 16:02 +0100, Simon Riggs wrote:
> The patch splits into two parts:
> * the machinery to *not* dirty a page when we set hints
> * behaviour modifications now that we can tell the difference between
> dirty and hinted pages
> Nobody has yet come up with any comments about the first half, which is
> good. The second part is clearly where much debate will occur. I'm going
> to literally split the patch into two, so we can get the machinery into
> CVS and then fiddle and argue over the second part over next few months.

The first "half" is actually quite large, but that makes it even more
sensible to commit this part now.

The enclosed patch introduces the machinery by which we might later
optimise hint bit setting. It differentiates between hint bit setting
and block dirtying, when the distinction can safely be made. It acts
safely during VACUUM and correctly during checkpoint. In all other
respects it emulates current behaviour.

The actual tuning patch can be discussed later, probably at length.
Later patches will be fairly small in comparison and so various people
can fairly easily come up with their own favoured modifications for

 Simon Riggs 
 PostgreSQL Training, Services and Support

Attachment: hint_bit_tracking.v1.patch
Description: text/x-patch (52.8 KB)

In response to


pgsql-hackers by date

Next:From: Bruce MomjianDate: 2008-06-30 22:43:06
Subject: Re: Confusing message in log file
Previous:From: Bruce MomjianDate: 2008-06-30 22:39:13
Subject: Re: [GENERAL] Surprising syntax error

pgsql-patches by date

Next:From: Andrew DunstanDate: 2008-06-30 23:29:03
Subject: Re: odd output in restore mode
Previous:From: Bruce MomjianDate: 2008-06-30 22:13:12
Subject: Re: odd output in restore mode

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group