Re: fsync or fdatasync

Поиск
Список
Период
Сортировка
От Ragnar Kjørstad
Тема Re: fsync or fdatasync
Дата
Msg-id 20020910015207.U24188@vestdata.no
обсуждение исходный текст
Ответ на Re: fsync or fdatasync  (Sean Chittenden <sean@chittenden.org>)
Ответы Re: fsync or fdatasync  (Sean Chittenden <sean@chittenden.org>)
Список pgsql-admin
On Mon, Sep 09, 2002 at 04:43:04PM -0700, Sean Chittenden wrote:
> > We'll be glad to consider changing the default for a specific platform
> > if we have a reasonably convincing argument that the other value is
> > better.  So far, not much study has been done of which method is best
> > on which platforms (and under what load conditions).
>
> heh, just a quick note: I had one of FreeBSD's kernel guru's point out
> that fsync() on linux is a no-op.  I haven't had that src tree in
> years so I can't confirm, but I'm inclined to believe him.  Just an

No, fsync() is not a no-op on linux.
Unless the filesystem is mounted with o_sync, I suppose - then
everything is written at write() so fsync() is not needed. But
generally, it does sync.


--
Ragnar Kjørstad
Big Storage

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

Предыдущее
От: Sean Chittenden
Дата:
Сообщение: Re: fsync or fdatasync
Следующее
От: Sean Chittenden
Дата:
Сообщение: Re: fsync or fdatasync