Re: Clock sweep not caching enough B-Tree leaf pages?

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Clock sweep not caching enough B-Tree leaf pages?
Дата
Msg-id 5356BBBE.80203@nasby.net
обсуждение исходный текст
Ответ на Re: Clock sweep not caching enough B-Tree leaf pages?  (David G Johnston <david.g.johnston@gmail.com>)
Список pgsql-hackers
On 4/21/14, 6:07 PM, David G Johnston wrote:
> Jim Nasby-2 wrote
>>> >>I feel that if there is no memory pressure, frankly it doesnt matter much
>>> >>about what gets out and what not. The case I am specifically targeting is
>>> >>when the clocksweep gets to move about a lot i.e. high memory pressure
>>> >>workloads. Of course,  I may be totally wrong here.
>> >
>> >Well, there's either memory pressure or there isn't. If there isn't then
>> >it's all moot*because we're not evicting anything*.
> The trade-off I'm seeing here is between measuring when there is no memory
> pressure - and thus eating at performance while not actually evicting
> buffers - and not measuring but then encountering memory pressure and not
> having a clue as to what should be evicted.

Right. OSes handle this by keeping a certain ratio of active vs inactive pages, regardless of pressure for free pages.
Thatway when you need more pages in the free list you can pull them from the inactive list knowing that you're making a
gooddecision.
 

One of the really nice things about this approach is that if memory pressure is low enough that you don't need more
pageson the inactive list you don't even need to run that clock.
 
-- 
Jim C. Nasby, Data Architect                       jim@nasby.net
512.569.9461 (cell)                         http://jim.nasby.net



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCH] `pg_dump -Fd` doesn't check write return status...
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Review: Patch FORCE_NULL option for copy COPY in CSV mode