News for hackers. Stuff that matters.
Re:Why Google Pixel lags 10x more than Moto Z by sbierwagen on Monday December 12, 2016 @01:43AM (#13156130)
fsync() has never been as reliable as the name implies, since flushing the disk cache kills performance system-wide. Fuzziness on what fsync does has... side effects: https://danluu.com/file-consistency/ http://blog.httrack.com/blog/2013/11/15/everything-you-alway...

Filesystems optimized for flash, and for battery-backed systems in general, (laptops, phones) have some history: https://en.wikipedia.org/wiki/Flash_file_system

Re:Why Google Pixel lags 10x more than Moto Z by quotemstr on Monday December 12, 2016 @01:46AM (#13156142)
The fundamental problem is that fsync is too powerful. Most of the time, what you really want is a write barrier --- you don't care about when writes happen, but you do care about their order. fsync is a write barrier, but it's also a synchronous flush.

But don't listen to me. I like TxF too.

Re:Why Google Pixel lags 10x more than Moto Z by ioltas on Monday December 12, 2016 @01:47AM (#13156147)
Or in short, calling fsync() twice is a tweak under-known: the file itself needs to be flushed, as well as its parent directory.