Linux DJ
Performance monitoring terminal with audio graph metrics
PipeWire Tuning·/latency/

How to Read pw-top: XRuns, Graph Load and Slow Nodes

Start with the driver row for the active interface. Use the change in ERR over a repeatable passage, then compare follower processing times to decide what to test next.

Make a finite capture

Run your app and start transport before taking the sample. Record the program version and enough iterations to include the problem. The upstream pw-top manual documents -b for batch mode and -n for the iteration count:

pw-top --version
pw-top -b -n 5 > pw-top-sample.txt

Five iterations make a short example, not a stress test. For an intermittent fault, increase the count so the capture spans the expected event. Keep a note of the workload and the time of any audible glitch. In interactive mode c clears the displayed counters for that instance of pw-top; it does not reset server-wide counters or another capture. Compare like with like. If a node is replaced or the counter decreases, start a new baseline.

Driver and follower rows mean different things

The main status letters are E (error), C (creating), S (suspended), I (idle) and R (running). Upstream also documents t for transport starting and T for transport running. Read node prefixes as graph relationships: + is a follower, and = marks an asynchronous follower. An idle or suspended device is not automatically unhealthy. Start with the running driver that belongs to the interface you are listening to.

FieldDriverFollower
QUANT and RATEActive graph cycle size and rateSuggested values; a mismatch alone does not prove resampling.
WAITTime from waking the driver to completion of that graph cycleTime between the node being signalled and starting its work; can reflect scheduling or dependencies.
BUSYDriver's own processing timeTime spent processing in that node.
W/Q, B/QGraph-cycle time and driver busy time relative to the periodWaiting and processing ratios relative to the period.
ERRCumulative XRuns and errors on the driverCumulative XRuns and errors on the follower.

The ID is useful for looking up properties with pw-cli info ID. Use the name and role alongside the number so you can recognise a different node after a restart. FORMAT shows the negotiated audio format, channels and sample rate. Compare this rate with the active graph rate when looking for conversion. A follower suggesting a different rate or quantum is not the same as it negotiating that rate.

Dashes in WAIT or BUSY indicate that the node was not signalled or was not started, respectively; they are not timings of zero. Plus signs indicate that a signalled node did not wake or a started node did not complete. Inspect the running graph and compare consecutive samples before treating a single marker as a persistent fault.

Illustrative reading, not a captured test: a running driver with QUANT 256 and RATE 48000 has a 5.33 ms period. If a follower BUSY column reads 2.67 ms, B/Q is about 0.50. That points to work worth investigating, not proof that the follower caused a dropout. If the driver's ERR moves from 3 to 5 across the test, report two additional errors on that driver. Don't add 3 and 5, or aggregate driver and follower counters into a total of unique glitches.

Read a captured example: PipeWire 1.4.10, Fedora 43

In a Fedora user’s HDMI dropout report, the captured HDMI driver reported 2,048 frames and 48,000 Hz with ERR 0. The Firefox follower below it suggested 3,600 frames, but its negotiated format still showed 48,000 Hz. The graph period in that snapshot was about 42.67 ms, calculated from the driver, not 75 ms calculated from the follower. This is someone else's capture, not a LinuxDJ test. It shows why a different follower quantum and a zero error counter do not respectively prove resampling or rule out the reported interruption.

Narrow the fault without changing the whole machine

  • Errors rise at the busy part of a session: bypass one candidate plugin or close one extra stream and replay the same passage. Compare the graph and that node, not total desktop CPU alone.
  • Driver W/Q is high but a suspect node has low B/Q: investigate dependencies, driver timing and other running nodes rather than declaring that plugin slow.
  • The configured buffer and active driver differ: check the driver while the relevant workload is running. This is a useful first step when a buffer change appears to do nothing.
  • Audio is bad but ERR is flat: the source could be clipping, duplicated monitoring, device clocking or cabling. A clean counter does not certify the analogue path.

With one repeatable failure, compare buffer sizes under the same workload before adjusting system scheduling or rebooting into a different kernel.

Use a graph view when you need to find a mistaken route. If a device disconnects and returns, compare your captured node names with the system's device messages around the same time. If an audible interruption is not reflected in the graph, repeat the playback with a known clip and check another output if available. Do not use pw-top to report physical latency, isolate a USB fault from one snapshot or certify that an interface is reliable.

  • PipeWire
  • pw-top
  • XRuns
  • Diagnostics
  • Linux Audio
  • 2026

Related Notes

← All notes