Re: Why O_SYNC is faster than fsync on ext3

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why O_SYNC is faster than fsync on ext3
Дата
Msg-id 25689.1079885432@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Why O_SYNC is faster than fsync on ext3  (Yusuf Goolamabbas <yusufg@outblaze.com>)
Список pgsql-hackers
Yusuf Goolamabbas <yusufg@outblaze.com> writes:
> Bruce, haven't followed the thread completely. Accessing the web archive
> is slow from Hong Kong but I just wanted to point you to this lkml post
> which shows why O_SYNC is much faster than fsync (at least on ext3)
> http://marc.theaimsgroup.com/?l=linux-kernel&m=107959907410443&w=2

That patch is broken on its face.  If O_SYNC doesn't take longer than
O_DSYNC, and likewise fsync longer than fdatasync, then the Unix
filesystem semantics are not being honored because the file mod time
isn't being updated.
        regards, tom lane


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Unbalanced Btree Indices ...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Unbalanced Btree Indices ...