[erlang-questions] mnesia sync_transactions not fsynced?

Matthew Sackman <>
Fri Oct 28 14:37:21 CEST 2011


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.

Matthew



More information about the erlang-questions mailing list