Re: mount -o async - is it safe?
От | Doug McNaught |
---|---|
Тема | Re: mount -o async - is it safe? |
Дата | |
Msg-id | 87ek34v0r8.fsf@asmodeus.mcnaught.org обсуждение исходный текст |
Ответ на | Re: mount -o async - is it safe? (Martijn van Oosterhout <kleptog@svana.org>) |
Ответы |
Re: mount -o async - is it safe?
|
Список | pgsql-general |
Martijn van Oosterhout <kleptog@svana.org> writes: > That depends. As long as the data is appropriately sync()ed when > PostgreSQL asks, it should be fine. However, from reading the manpage > it's not clear if fsync() still works when mounted -o async. > > If -o async means "all I/O is asyncronous except stuff explicitly > fsync()ed" you're fine. Otherwise... That's the way it works. Async is the default setting for most filesystems, but fsync() is always honored, at last as far as non-lying hardware will allow. :) > The usual advice is to stick the WAL on a properly synced partition and > stick the rest somewhere else. Note, I have no experience with this, > it's just what I've heard. This might not be optimal, as having every write synchronous actually results in more synced writes than are strictly necessary. -Doug
В списке pgsql-general по дате отправления: