Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
senderista
· 1y ago · 0 comments
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.
Comments
[–]
dgshsg
1y ago
You 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
OP
1y ago
Avoiding the syscall cost is about maximizing throughput, not minimizing latency. The media's time-to-durability is what it is.