Re: Why are these ARC variables per-backend?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why are these ARC variables per-backend?
Дата
Msg-id 27747.1082402495@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why are these ARC variables per-backend?  (Jan Wieck <JanWieck@Yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Why are these ARC variables per-backend?
Следующее
От: Brett Schwarz
Дата:
Сообщение: Re: [INTERFACES] Why is libpgtcl still in CVS?