| ▲ | rockwotj a day ago | |||||||
> Direct I/O means no more fsync: no more complexity via background flushes and optimal scheduling of syncs. There's no kernel overhead from copying and coalescing. It essentially provides the performance, control, and simplicity of issuing raw 1:1 I/O requests. Not true, you still need fsync in direct I/O to ensure durability in power loss situations. Some drives have write caches that means acknowledged writes live in non-volatile memory. So maybe the perf is wildly better because you’re sacrificing durability? | ||||||||
| ▲ | rrauch a day ago | parent | next [-] | |||||||
Looks like the author is well aware:
Full code here:https://github.com/wilsonzlin/blobd/blob/master/libblobd-dir... | ||||||||
| ▲ | actionfromafar a day ago | parent | prev [-] | |||||||
You mean in volatile memory? | ||||||||
| ||||||||