[erlang-questions] mnesia sync_transactions not fsynced?

Håkan Mattsson hm@REDACTED
Fri Oct 28 15:21:00 CEST 2011

On Fri, Oct 28, 2011 at 2:37 PM, Matthew Sackman <matthew@REDACTED> wrote:
> On Fri, Oct 28, 2011 at 12:05:12PM +0200, Håkan Mattsson wrote:
>> For obvious reasons, the write cache in disk_log ought to be disabled
>> for the transaction log.
> As a minimum. You almost certainly want to ensure that the file is
> opened with O_DIRECT and O_SYNC too, which are flags which are not
> exposed in the file module. Either that, or to actually do the fsync's
> before each txn commits.

Maybe. If used naively, these flags may impose bad characteristics of the VM.


More information about the erlang-questions mailing list