3 ms·
This has almost nothing to do with Java and there is nothing revealing in this blog post. Block device operations on Linux always went through layers of indirec
by bitcharmer 3y ago
This has almost nothing to do with Java and there is nothing revealing in this blog post. Block device operations on Linux always went through layers of indirection. That's why things like page cache or writeback exist. You can always go O_DIRECT if you need the write to be truly synchronous.
If anything the author just discovered how IO works on Linux.
- yxhuvud 3y agoExcept that nowadays you can actually do async file IO using io_uring.
- PaulDavisThe1st 3y agoO_DIRECT doesn't guarantee synchronous, it only skips the buffer cache.