Compute I/O share from exclusive event time
DecisionVerified 5 Oct 2026Holds anywhere
Decision. The context, the choice, why, and the options that were turned down.
Context#
Calculating I/O share for dftracer-demo traces with nested DLIO categories.
Decision#
Compute each event's exclusive time as its duration minus durations of events nested inside it on the same thread. Do not sum durations by category. dftracer_stats gives only plain sums, so io_share.py reads the compact trace itself. Exclusive times add to 100% when the remainder is shown as rest.
Why#
DLIO categories nest (pipeline contains epoch, which contains compute), so plain category sums count the same second more than once and shares exceed 100%.
Rejected options#
A plain per-category duration sum.
Evidence#
This was the selected method in dftracer-demo's I/O-share analysis.
Also found by searching
- category durations add to more than 100 percent because events nest
- how should I compute exclusive I/O share from a compact trace
- pipeline epoch and compute durations double count time
- calculate event share by subtracting nested durations on each thread