Re: Do we need so many hint bits? - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Do we need so many hint bits?
Date
Msg-id 201211181519.33154.andres@2ndquadrant.com
Whole thread Raw
In response to Re: Do we need so many hint bits?  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Do we need so many hint bits?
List pgsql-hackers
On Sunday, November 18, 2012 03:07:01 AM Jeff Davis wrote:
> Process A (process that clears a VM bit for a data page):
>   1. Acquires exclusive lock on data buffer
>   2. Acquires exclusive lock on VM buffer
>   3. clears VM bit
>   4. Releases VM buffer lock
>   5. Releases data buffer lock

Well, but right this is a rather big difference. If vm pages get 
unconditionally locked all the time we will have a huge source of new 
contention as they are shared between so many heap pages.

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



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Do we need so many hint bits?
Next
From: Simon Riggs
Date:
Subject: Re: Do we need so many hint bits?