Measuring Scheduler Contention Before Believing Scheduler Claims

The benchmark methodology behind a Master's study of block-based work-stealing: shared-queue baselines, task granularity, workload skew, victim-selection overhead, and the measurement hygiene needed before any speedup claim.

Engineering Lab

Scheduler papers love speedup charts. A work-stealing variant beats the baseline by some percentage, the chart goes up and to the right, and the conclusion writes itself. What the chart rarely shows is everything that had to be controlled for that number to mean anything.

This post describes the measurement methodology behind an in-progress Master's study of block-based work-stealing — a design inspired by the BWoS paper (USENIX OSDI 2023), which separates owner and thief access to queue regions to reduce synchronization interference. The study is independent of that work: it does not reproduce BWoS, its formal verification, or its published results. What it borrows is the question: does separating access patterns measurably reduce contention for fine-grained parallel workloads?

The interesting engineering problem turned out not to be the scheduler variant. It was building the benchmark harness in such a way that a result, once produced, is believable.

Start with a baseline that actually contends

The first requirement is a shared-queue baseline that genuinely exposes contention under concurrent submission and consumption. A baseline that is accidentally uncontended makes every variant look like a win for reasons that have nothing to do with the variant.

That means the harness must be validated negatively: confirm that the shared queue degrades as worker count and task volume increase, and that the degradation is attributable to synchronization rather than to some unrelated bottleneck (allocation, false sharing in the workload itself, I/O noise).

Three independent axes, varied one commitment at a time

The study varies three axes, each of which interacts with the others:

  1. Task granularity. Fine-grained tasks amplify per-operation synchronization costs, which is precisely where block-oriented queue layouts should help. Coarse tasks dilute scheduling overhead until every policy looks identical.
  2. Worker count. More workers mean more thieves competing for fewer owner-produced blocks — the point where queue-selection policy starts to matter.
  3. Workload skew. Real workloads are not uniform. Queue-length-aware stealing should help under skew, but its measurement and selection overhead must be priced in; a policy that wins under skew can lose under balanced load purely because of bookkeeping cost.

Varying these axes while keeping workload seeds, machine configuration, compiler/runtime versions, and raw output recorded for every run is what turns a chart into evidence.

Price the policy before crediting the policy

A subtle trap in scheduler comparisons: clever victim-selection policies require inspecting queue state, and that inspection is itself synchronization-adjacent work. If the harness measures only end-to-end throughput, a policy can appear to win while its selection overhead is being hidden by measurement artifacts — or lose while paying a visible, honest cost.

So the study records scheduler overhead per task, successful and failed steal attempts, per-worker idle time, and load-distribution fairness alongside throughput. Failed steal attempts in particular are a direct contention signal: thieves spinning against empty or locked queues.

No claims before the harness is trustworthy

The study's public boundary is explicit: no benchmark result, speedup claim, or formal-verification claim is published until the implementation and evaluation are complete. The milestones are ordered accordingly — workload generator and baseline interface first, correctness-validated baselines second, the block-oriented variant third, controlled comparisons only after that.

This is the same discipline that applies to any performance work: the measurement system must be engineered with the same rigor as the thing being measured. An unvalidated benchmark does not merely fail to produce answers — it confidently produces wrong ones, and wrong performance numbers are harder to detect than wrong features because they arrive attached to a chart.

The research note with methodology, observations, and limitations will be published on the study page once the evaluation is complete.