> Well, this is unfortunate. It turns out #Apple's custom #NVMe drives are amazingly fast - if you don't care about data integrity.
> If you do, they drop down to #HDD performance.
> As it turns out, #macOS cheats. On #Linux, #fsync() will both flush writes to the drive, and ask it to flush its write cache to stable storage.
> But on #macOS, #fsync() only flushes writes to the drive. Instead, they provide an #F_FULLSYNC operation to do what fsync() does on #Linux.
https://nitter.fdn.fr/marcan42/status/1494213855387734019
#F_FULLSYNC #fsync #linux #macos #hdd #nvme #apple