4 ms·
What about O_DIRECT | O_SYNC options in linux's open()?
by leni536 11y ago
What about O_DIRECT | O_SYNC options in linux's open()?
- rwmj 11y agoO_SYNC has abysmal performance. O_DIRECT has very underspecified semantics, but particularly it demands that you only read and write whole "blocks" (where "block" depends on the filesystem type, underlying block device and phase of the moon).
- ymse 11y agoSee also Linux Torvalds' opinion on O_DIRECT: The thing that has always disturbed me about O_DIRECT is that the whole interface is just stupid, and was probably designed by a deranged monkey on some serious mind-controlling substances. https://lkml.org/lkml/2002/5/11/58 https://lkml.org/lkml/2002/5/11/58