ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
528 stars 67 forks source link

eio_linux: don't record submit events when there's nothing to submit #729

Closed talex5 closed 1 month ago

talex5 commented 1 month ago

It reported that the domain was suspended during all calls to submit, but in fact uring doesn't make a syscall if there's nothing to submit. This leads to short bogus suspend regions on traces, which are distracting. e.g. tracing examples/net shows this bogus 100ns suspend:

old