Re: Experimental patch for inter-page delay in VACUUM

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Experimental patch for inter-page delay in VACUUM
Дата
Msg-id 200311101934.hAAJYOb27581@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Experimental patch for inter-page delay in VACUUM  (Jan Wieck <JanWieck@Yahoo.com>)
Ответы Re: Experimental patch for inter-page delay in VACUUM
Список pgsql-hackers
Jan Wieck wrote:
> >> > If the background cleaner has to not just write() but write/fsync or
> >> > write/O_SYNC, it isn't going to be able to clean them fast enough.  It
> >> > creates a bottleneck where we didn't have one before.
> >> > 
> >> > We are trying to eliminate an I/O storm during checkpoint, but the
> >> > solutions seem to be making the non-checkpoint times slower.
> >> > 
> >> 
> >> It looks as if you're assuming that I am making the backends unable to 
> >> write on their own, so that they have to wait on the checkpointer. I 
> >> never said that.
> > 
> > Maybe I missed it but are those backend now doing write or write/fsync? 
> > If the former, that is fine.  If the later, it does seem slower than it
> > used to be.
> 
> In my all_performance.v4.diff they do write and the checkpointer does 
> write+sync.

Again, sorry to be confusing --- I might be good to try write/fsync from
the background writer if backends can do writes on their own too without
fsync.  The additional fsync from the background writer should reduce
disk writing during sync().  (The fsync should happen with the buffer
unlocked.)

You stated you didn't see improvement when the background writer did
non-checkpoint writes unless you modified update(4).  Adding fsync might
correct that.

--  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 по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Experimental patch for inter-page delay in VACUUM
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: [7.3.x] function does not exist ... ?