3 ms·
You can enqueue fsync as an op in io_uring, using link flag to sequence it after previous ops and drain flag to ensure no new ops are started until it completes
by senderista 1y ago
You can enqueue fsync as an op in io_uring, using link flag to sequence it after previous ops and drain flag to ensure no new ops are started until it completes.
- dgshsg 1y agoYou still need to wait for it to complete to report the commit success to the user, the cost of syscall itself is rather minor here.
- senderista 1y agoAvoiding the syscall cost is about maximizing throughput, not minimizing latency. The media's time-to-durability is what it is.