Re: Background writer process

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема Re: Background writer process
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA496206C@m0114.s-mxs.net
обсуждение исходный текст
Ответ на Background writer process  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-hackers
> If the background writer uses fsync, it can write and allow the buffer
> to be reused and fsync later, while if we use O_SYNC, we have to wait
> for the O_SYNC write to happen before reusing the buffer;
> that will be slower.

You can forget O_SYNC for datafiles for now. There would simply be too much to
do currently to allow decent performance, like scatter/gather IO, ...
Imho the reasonable target should be to write from all backends but sync (fsync)
from the background writer only. (Tune the OS if it actually waits until the
pg invoked sync (== 5 minutes per default))

Andreas


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [pgsql-advocacy] Not 7.5, but 8.0 ?
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: [pgsql-advocacy] Not 7.5, but 8.0 ?