4 ms·
I think it is a different matter. MacOS documented its abnormal fsync behavior, Golang just didn't follow what was clearly described in those documents. Linux
by dis-sys 8y ago
I think it is a different matter.
MacOS documented its abnormal fsync behavior, Golang just didn't follow what was clearly described in those documents. Linux didn't document what happens on fsync failure, there is really nothing for applications to follow.
Also note that, the strange MacOS fsync() behavior is obvious, its fsync latency on the most recent mbp by default is close to the one observed on Intel Optane when we all know that mbp comes with much cheaper/slower SSD compared to Intel Optane. The same can't be said for the Linux fsync issue here.
- masklinn 8y agoAccording to https://wiki.postgresql.org/wiki/Fsync_Errors https://wiki.postgresql.org/wiki/Fsync_Errors MacOS also has the Linux issue anyway.