Re: Experimental ARC implementation

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Experimental ARC implementation
Дата
Msg-id 200311070348.hA73mTq06434@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Experimental ARC implementation  (Jan Wieck <JanWieck@Yahoo.com>)
Ответы Re: Experimental ARC implementation
Re: Experimental ARC implementation
Список pgsql-hackers
Jan Wieck wrote:
> It also contains the starting work of the discussed background buffer 
> writer. Thus far, the BufferSync() done at a checkpoint only writes out 
> all dirty blocks in their LRU order and over a configurable time 
> (lazy_checkpoint_time in seconds). But that means at least, while the 
> checkpoint is running the backends should not need to flush dirty 
> buffers as well, since all the candidates they get for replacement are 
> clean. My plan is to create another background process very similar to 
> the checkpointer and to let that run forever basically looping over that 
> BufferSync() with a bool telling that it's the bg_writer.

Have you considered having the background writer check the pages it is
about to write to see if they can be added to the FSM, thereby reducing
the need for vacuum?  Seems we would need to add a statistics parameter
so pg_autovacuum would know how many tuples the background write added
to the freespace map, so it doesn't vacuum a table that doesn't need it.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: [pgsql-www] Changes to Contributor List
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Experimental ARC implementation