Re: Why are these ARC variables per-backend? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Why are these ARC variables per-backend?
Date
Msg-id 27747.1082402495@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why are these ARC variables per-backend?  (Jan Wieck <JanWieck@Yahoo.com>)
List pgsql-hackers
Jan Wieck <JanWieck@Yahoo.com> writes:
> Tom Lane wrote:
>> Why do we have it at all?  Seems like it would be at least as good to
>> make the T1-or-T2 decision in StrategyGetBuffer, rather than earlier.

> If it'd be possible. The problem is that it can get called multiple 
> times during one logical buffer lookup/fault cycle. Because of the 
> possible IO, which is done in the caller of the strategy, this would 
> screw up the decision process about the queue sizes.

How so?  It seems like postponing the decision about which queue to take
from couldn't make the behavior worse; if anything it would help to
track T1target more closely.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Why are these ARC variables per-backend?
Next
From: Brett Schwarz
Date:
Subject: Re: [INTERFACES] Why is libpgtcl still in CVS?