4 ms·
If a software, especially a DB, cares about durable writes, it must surely use fsync(), not depend on how long some delays are.
by nh2 3y ago
If a software, especially a DB, cares about durable writes, it must surely use fsync(), not depend on how long some delays are.
- orra 3y agoSort of. The problem is fsync() is a rather blunt tool, forcing too much to be synchronised, reducing concurrency. I remember when ext4 was new there was debate about supporting atomic rename() without fsync(); see https://lwn.net/Articles/322823/ https://lwn.net/Articles/322823/