Catalog index
The ten technique patterns from this guide, mapped to the part of the scan-to-divert budget each one narrows, the problem signal that calls for it, and the effect its own chapter measured.
Ten chapters have each handed you one technique, measured against the same running example under the same scan-to-divert metric. “The running example and the harness” built what every one of them ran inside; it is the harness, not a technique to reach for, so it has no row below. This chapter is the index: one row per pattern, naming the part of the budget it narrows, the problem signal that should send you looking for it, and the effect its own chapter measured.
Nothing in the table is new work. Every cell traces back to a results file or a “Measure” section this guide already shipped; read the linked chapter for the lane breakdown, the method, and the trade-offs behind the one short phrase printed here.
Diagram
The catalog
| Pattern | Budget line it addresses | Reach for it when | Host / VM | Measured effect |
|---|---|---|---|---|
| Latency as a distribution | the whole window | a report shows one average instead of a distribution | Host | the mean hides the tail |
| The latency budget | modelling | before committing to a technique, to know the ceiling and how many parcels are in flight | Host | modelling, not a speedup |
| Eliminating work | decide | a decision step pays for an allocation, a lookup, and a rebuild it could do once | Host | ~5.1x p50, ~14.2x p99.9 (precomputed table replaces allocate + hash lookup + rebuild) |
| Zero-copy data layout | decide | a hot loop chases pointers, or two threads fight over one cache line | Host | ~1.9x p50 on the ledger scan; ~3.7-4.0x on split counters |
| Wait-free synchronization | act | exactly two threads hand off on the hot path and the producer must never block | Host | ~15.3x p50, ~16.9x p99.9 (ring replaces mutex queue) |
| Exploiting concurrency | decide | one thread cannot clear a batch before the deadline and the work splits into equal, known-size pieces | Host | ~10x throughput; clears every deadline (sequential cleared about 13%) |
| Caching | decide | a backing lookup is slow and the real access pattern is skewed, not uniform | Host | ~35x p50 against uncached; tail narrows to ~1.3x |
| Shard-per-core partitioning | the whole window | many cores update shared per-key state and contend on one lock | Host | ~8.3x throughput, moving together at every percentile |
| Asynchronous processing | act | a hot-path call makes a durable write, or other slow I/O, the deadline does not need to wait for | Host | ~456x p50 against sync-inline; ~76x throughput |
| Taming the host | the whole window | the hot path shares a core with other runnable work and misses its deadline for reasons its own code cannot explain | VM | VM-shaped: ~3.9x p50 on a burst (5399us to about 1390us); cyclictest p99 866us to 487us |
When a pattern is the wrong reach
A cache earns nothing when the backing store is already fast or the
workload writes more than it reads: the catalog’s SIEVE number comes
entirely from a skewed, read-heavy trace, and a uniform access pattern
collapses every policy toward the uncached number. Shard-per-core assumes
traffic spreads evenly across shards; a workload that lands one key’s
traffic on one shard needs the hot-partition mitigation “Shard-per-core
partitioning” measures on top, not blind faith that sharding alone removed
the contention. Wait-free synchronization is scoped to exactly one producer
and one consumer; a second producer, or a need to block until space frees
up, calls for the ordinary mutex queue that pattern was measured against,
not a wait-free ring asked to do a job it was never built for. Raising a
thread to SCHED_FIFO without a watchdog trades one hazard for another: a
misbehaving real-time thread can starve everything at or below its
priority, so “Taming the host” needs a bound on how long that thread may
run, not the priority change alone. And every fix in that same chapter is
host or VM configuration a portable service cannot assume about wherever it
deploys next; a service that depends on an isolated core carries none of
that tuning with it to a different box, a different VM flavor, or a
container scheduler that has never heard of isolcpus.
This catalog is where the guide ends. The harness measured all ten techniques against one running example and reported a distribution, never an average, every time; keep this table as the way back into all ten results at once, then open whichever chapter’s own trade-offs section the next decision needs.