Re: fsync method checking

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: fsync method checking
Дата
Msg-id 11816.1079641223@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: fsync method checking  (Kurt Roeckx <Q@ping.be>)
Ответы Re: [PERFORM] fsync method checking
Список pgsql-hackers
Kurt Roeckx <Q@ping.be> writes:
> I have no idea what the access pattern is for normal WAL
> operations or how many times it gets synched.  Does it only do
> f(data)sync() at commit time, or for every block it writes?

If we are using fsync/fdatasync, we issue those at commit time or when
completing a WAL segment.  If we are using the open flags, then of
course there's no separate sync call.

My previous point about checking different fsync spacings corresponds to
different assumptions about average transaction size.  I think a useful
tool for determining wal_sync_method has got to be able to reflect that
range of possibilities.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: fsync method checking
Следующее
От: Kurt Roeckx
Дата:
Сообщение: Re: fsync method checking