ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
562 stars 71 forks source link

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

Closed talex5 closed 6 months ago

talex5 commented 6 months 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