I am trying to optimise some file system code. The issue is that the fdatasync syscalls are either fast or 10x slower.
The key part of the documentation is: