Re: Bgwriter behavior

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bgwriter behavior
Дата
Msg-id 29385.1103691734@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bgwriter behavior  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> The only way I could see it being worse than pre-8.0 is that the
> bgwriter is doing fsync of all open files rather than using sync. Other
> than that, I think it should behave the same, or slightly better, 
> right?

It's possible that there exist platforms on which this is a loss ---
that is, the OS's handling of fsync is so inefficient that multiple
fsync calls are worse than one sync call even though less I/O is forced.
But I haven't seen any actual evidence of that; and if such platforms
do exist I'm not sure I'd blink anyway.  We are not required to optimize
for brain-dead kernels.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Bgwriter behavior
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: Thoughts about updateable views