Re: bgwriter changes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bgwriter changes
Дата
Msg-id 16752.1103053219@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: bgwriter changes  ("Zeugswetter Andreas DAZ SD" <ZeugswetterA@spardat.at>)
Ответы Re: bgwriter changes
Re: bgwriter changes
Список pgsql-hackers
"Zeugswetter Andreas DAZ SD" <ZeugswetterA@spardat.at> writes:
> Is it possible to do a patch that produces a dirty buffer list in LRU order
> and stops early when eighter maxpages is reached or bgwriter_percent
> pages are scanned ?

Only if you redefine the meaning of bgwriter_percent.  At present it's
defined by reference to the total number of dirty pages, and that can't
be known without collecting them all.

If it were, say, a percentage of the total length of the T1/T2 lists,
then we'd have some chance of stopping the scan early.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: possible wierd boolean bug?
Следующее
От: Tom Lane
Дата:
Сообщение: 8.0 release schedule