3 ms·
I asked my question in the wrong place! "So is the original requirement for O_DIRECT addressed completely by O_SYNC and O_DSYNC" I'm guessing you'd say "no"
by raffraffraff 1y ago
I asked my question in the wrong place!
"So is the original requirement for O_DIRECT addressed completely by O_SYNC and O_DSYNC"
I'm guessing you'd say "no"
- jandrewrogers 1y agoO_DIRECT is separate from synchronization. There is no guarantee that O_DIRECT writes are durable, though a subset of hardware may work this way in fact. The practical purpose of O_DIRECT is to have precise visibility and control over what is in memory, what is on disk, and any inflight I/O operations. This opens up an entire category of workload-aware execution scheduling optimizations that become crucial for performance as storage sizes increase.