[erlang-questions] mnesia sync_transactions not fsynced?

Dan Gudmundsson <>
Fri Oct 28 15:21:37 CEST 2011


On Fri, Oct 28, 2011 at 2:37 PM, Matthew Sackman <> 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.
>

Well I didn't know it was cached, and there is no api to turn it off yet either.
/Dan



More information about the erlang-questions mailing list