Re: Potential Large Performance Gain in WAL synching

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Potential Large Performance Gain in WAL synching
Дата
Msg-id 15318.1033687044@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Potential Large Performance Gain in WAL synching  ("Curtis Faith" <curtis@galtair.com>)
Ответы Re: Potential Large Performance Gain in WAL synching  ("Curtis Faith" <curtis@galtair.com>)
Список pgsql-hackers
"Curtis Faith" <curtis@galtair.com> writes:
> So, why don't we use files opened with O_DSYNC | O_APPEND for the WAL log
> and then use aio_write for all log writes?

We already offer an O_DSYNC option.  It's not obvious to me what
aio_write brings to the table (aside from loss of portability).
You still have to wait for the final write to complete, no?

> 2) Allow transactions to complete and do work while other threads are
> waiting on the completion of the log write.

I'm missing something.  There is no useful work that a transaction can
do between writing its commit record and reporting completion, is there?
It has to wait for that record to hit disk.
        regards, tom lane


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

Предыдущее
От: Mike Benoit
Дата:
Сообщение: Re: [GENERAL] Performance while loading data and indexing
Следующее
От: Greg Copeland
Дата:
Сообщение: Re: [GENERAL] Performance while loading data and indexing