Profiler for io_uring-based applications
Problem
Engineers adopting io_uring cannot see where time goes: profilers attribute CPU to io_uring_enter or io-wq worker threads, not to the application request that caused the work.
Hypothesis
Engineers adopting io_uring struggle to explain its performance (unexpected CPU use, slow small writes) because profilers show syscalls and stacks, not the flow of submissions and completions.
Possible deliverable
A bpftrace/libbpf toolkit or profiler mode that attributes SQE submission, kernel work (io-wq, SQPOLL) and CQE completion back to the application operation.
Only worth building if the evidence holds up. Check what still needs validating first.
Evidence
Long thread (28 comments) diagnosing where time goes.
Profiler maintainers see the same attribution gap for async work.
Existing solutions
- bpftracepartial
Can attach to the io_uring tracepoints, but each user writes their own scripts and there is no request-level attribution.
- OpenTelemetry eBPF profilerpartial
Profiles CPU stacks; its maintainers note async work is attributed to where it runs, not where it was initiated (#1769).
Attached signals
No signal concerns this hypothesis's entities yet. See unassigned clusters.
Still needs validating
- Are existing io_uring tracepoints enough to follow a request through io-wq without kernel changes?
- Would the liburing or bpftrace maintainers host this, or does it need its own project?