Re: sync_file_range()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: sync_file_range()
Дата
Msg-id 27505.1150811544@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: sync_file_range()  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> So we would use the async properties of sync, but not the file range
> support?

That's the part of it that looked potentially useful to me, anyway.
I don't see any value for us in syncing just part of a file, because
we don't have enough disk layout knowledge to make intelligent choices
of what to sync.  I think the OP had some idea of having the bgwriter
write and then force-sync individual pages, but what good is that?
Once we've done the write() the page is exposed to the kernel's write
scheduler and should be written at an intelligent time.  Trying to
force sync in advance of our own real need for it to be synced (ie
the next checkpoint) doesn't seem to me to offer any benefit.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: shall we have a TRACE_MEMORY mode
Следующее
От: Tom Lane
Дата:
Сообщение: Re: sync_file_range()