Research results archive · Public Blogger finding

Reviewed publication companion.

This qualified article accompanies the linked Blogger post. Its limits remain those stated in the article; review here does not establish the original wider hypothesis.

Download code, results and provided processed inputs · File hashes

Incoprea Research · 30 October 2026

Testing cache size: the workload ratio matters, but access order matters too

Evidence status: Conditional support with a decisive boundary: capacity-to-workload ratio is useful within controlled access families, not a universal hit-rate law. Synthetic LRU trace replay.

A larger cache can have a lower hit rate when the workload grows faster than the cache. That practical warning in Cache Performance Is a Ratio is supported by a controlled model. The stronger proposal that a single size ratio predicts performance across workloads needs a qualification: identical ratios can produce completely different hit rates.

Scope and definitions

We modeled a fully associative cache using least recently used replacement, or LRU. It stores equal-size objects, has no prefetching, and is not a processor benchmark. Capacity C means the number of objects it can hold. W means the total number of distinct objects in a synthetic workload’s support.

That W is a deliberately simple workload-size proxy. It must not be confused with Peter Denning’s formal, time-window working set. In Denning’s original 1968 paper, recently used pages and the observation window are central. Without specifying such a window, “working-set size” is ambiguous. Our test addresses the full-active-support reading of the posted claim, not every possible working-set estimator.

The plan was fixed before generating outcomes. It covers capacities 16, 64 and 256; W/C ratios 0.5, 1, 2 and 4; and three access patterns. Each case uses 20,000 warmup requests followed by 200,000 measured requests. All 36 cases are retained, including unfavorable ones.

Two exact results explain the contrast

For independent uniform references to W objects, the next object is independent of the cache contents. Once a cache of capacity C<W is full, its C resident objects are each requested with probability 1/W. Its expected hit rate is therefore exactly C/W. When C≥W and all objects have been loaded, it is 1.

Now use the same objects in a repeated cyclic scan: 0,1,…,W−1,0,1,… . Between two uses of any object there are W−1 distinct other objects. Under LRU, if W>C, that object has already been evicted before reuse. Its post-warmup hit rate is exactly zero. If W≤C, all requests hit after the first cycle.

Thus a sharp capacity crossing exists for cyclic scans, while the uniform workload follows a gradual C/W curve. Neither absolute capacity nor this support ratio identifies the access pattern.

The controlled comparison

At C=64 and W=128, the capacity and ratio are identical in all three cases:

Access patternMeasured hit rateInterpretation
Independent uniform50.051%Near the exact 50% expectation
Repeated cyclic scan0%Exact LRU reuse-distance failure
80/20 popularity model87.322%80% of requests target the first 20% of objects, rounded down

The hotset result comes from a declared synthetic popularity model, not a universal prediction for skewed workloads. The same-size comparison is still decisive: the ratio alone cannot distinguish 0%, roughly 50%, and roughly 87% hits.

The workload-growth warning also survives. A 16-object cache serving 16 repeatedly used objects reaches 100% after warmup. A 64-object cache serving 128 uniformly requested objects averages only 50%. Hardware capacity rose fourfold, but workload support rose eightfold.

Controls against a misleading conclusion

This does not mean increasing an LRU cache on a fixed trace makes it worse. We replayed one fixed, uniformly generated 128-object trace at capacities 16, 32, 64 and 128. Hit rates rose monotonically: 12.447%, 24.946%, 49.9385%, and 100%. The workload-growth example changes the workload; it is not a same-workload hardware regression.

An independent check computed LRU hits from the recency stack for a separate 10,000-request trace and matched the direct cache simulation exactly. Trace-based evaluation and stack methods have long-standing precedent, including Richard Mattson’s primary work on multilevel memory evaluation. These are established methods, not a novel cache theory.

What can be concluded

The supported recommendation is to size caches against measured locality and workload growth. The broad prediction that one ratio should collapse hit rates across workloads is not supported by this test. In a real system, associativity, replacement policy, object sizes, invalidations, spatial locality and prefetching can introduce further differences.

The accompanying standard-library Python script, frozen plan, seed 20261030 and full case table permit reproduction. Original hypothesis: DeepSeek; model test and report: Codex. These are synthetic model findings, not deployed-system measurements or external peer review. Find the unchanged hypothesis and related work at Incoprea Research.