Summing each function's time per op names where time lands; a backward critical-path walk names the cause
Statement#
Ranking functions by how much their time per operation grew (cell against baseline) points at the wrong place when the program blocks: a blocking call's duration holds whatever it waited on, so the largest growth lands downstream of the cause. A send on the sink grows because the proxy upstream was slow.
The standard fix is a critical-path walk (Yang and Miller's IPS-2; Schulz; Bohme et al. in Scalasca). For each operation, build a happens-before graph from the trace: program order on one thread, each send to its matching receive, each submit to its completion, a batch to the records it carries and its timer, a receive to the credit that freed its buffer. Walk backward from the operation's end, at each event along the incoming edge that arrived last. Sum the walked segments per node, layer and step, and compare cells. The walked path must add back up to the operation's measured time; check that first.
A one-clock trace across nodes is what makes the walk possible: the edges between nodes compare timestamps from different machines.
Evidence#
dpucrumbs black-box study, 22 multi-node cells with an injected cause (an RDMA aggregator pipeline over four nodes and a DPU-to-DPU ping-pong). Largest per-function growth named the right node on 3 of 22. A hand-written linear chain of steps named 15. The backward last-arrival walk named 17, and 11 of the 14 cells whose cause sat on a different node from where the time was read. Its mean path matched the app's median latency within 0.97 to 1.04 on every cell but one. A vendor-tool baseline (perf, NIC counters) named 12, 7 of them through an unrelated daemon's activity.
Also found by searching
- per-function time sums blame the wrong node
- the slowest call grows on the sink but the cause is on the proxy
- how do I find which node caused a slowdown from a trace
- time attribution names where the time lands, not the cause