2012-11-17 05:02:58

by Vladislav Bolkhovitin

[permalink] [raw]
Subject: Re: [sqlite] light weight write barriers

杨苏立 Yang Su Li, on 11/15/2012 11:14 AM wrote:
> 1. fsync actually does two things at the same time: ordering writes (in a
> barrier-like manner), and forcing cached writes to disk. This makes it very
> difficult to implement fsync efficiently.

Exactly!

> However, logically they are two distinctive functionalities

Exactly!

Those two points are exactly why concept of barriers must be forgotten for sake of
productivity and be replaced by a finer grained abstractions as well as why they
where removed from the Linux kernel

Vlad