Linux DJ
Data visualization showing quantum vs XRun relationship across configurations
Benchmarking·/latency-graph/

How to Test PipeWire Quantum and XRun Thresholds

Find the smallest quantum that meets your own workload criteria, not a universal safe number. The previous dataset is not available with the logs needed to substantiate its conclusions.

Define a passing run before testing

Choose a repeatable project or performance passage and what failure means: new ERR events on the observed driver, audible interruptions, or both. State the trial duration and number of repetitions up front. Include start and stop transitions if they matter in practice. A clean short run only describes that run; it cannot certify a future gig.

  1. Fix the machine, kernel and configuration, interface and firmware, driver, routing, app and plugin versions, workload and sample rate. Record the observed quantum under load as well as the request. Use the quantum test guide and local session log for the repeatable setup.
  2. Start with a setting likely to tolerate the workload. Run several equal-length trials at each setting and compare adjacent quanta. Repeat a previous setting after a failed run so heat, background activity or a changed route cannot quietly become the explanation.
  3. Log the initial and final counters for the same driver/node. A reset or replacement invalidates that delta. Retain the raw capture and note its time and monitoring conditions. Do not sum repeated cumulative counts or treat different nodes' counters as unique audible glitches.
  4. Report the observed pass rate and record any inconsistent setting. If two of three trials were clean, do not publish it as a zero-XRun threshold. Choose operating headroom away from the lowest tested passing value for a critical session.

Keep comparisons interpretable

To test a kernel mode or a firmware change, keep the other conditions identical and repeat the same trial across configurations. If hardware, rate or stack changed too, report them as different configurations rather than attributing the effect to the kernel. Include versioned test scripts, raw logs, reset method and the spread across repeats before republishing numerical results. A formula-based graph period is not physical round-trip latency.

Keep one row per trial

Record the fields below even when a trial fails. Do not replace failed rows with the next successful attempt.

Field groupWhat to record
SetupMachine, interface revision and firmware; kernel config, PipeWire and session manager versions.
WorkloadExact project or test fixture, app and plugin versions, active channels, monitoring route and test duration.
Run settingsRequested and observed rate and quantum, graph driver, trial number and run order.
EvidenceBefore/after counter values, reset marker, timestamp of audible fault and capture filename.
VerdictPass, fail or invalid, with the reason. A changed route or restarted counter is not a clean trial.

Reverse the order for another block of trials when practical. If a smaller buffer only fails after the machine has warmed up, compare it with a later run at the original setting. If error counts disagree with what you hear, retain both observations and describe the limitation. Do not fit a cutoff to one brief sequence and generalise it to another interface, application or sample rate.

An example of an honest finding would be: one setting passed every scheduled trial, while a smaller setting was inconsistent and remains unqualified for this project. That is more useful than claiming the smaller setting is safe because one run succeeded. This page does not provide measured results until the original evidence can be recovered or an equivalent experiment can be reproduced and independently checked.

  • PipeWire
  • Quantum
  • XRuns
  • Benchmarks
  • Dataset
  • Linux Audio
  • 2026

Related Notes

← All notes