One-hit-wonder ratio
The one-hit-wonder ratio is the fraction of distinct objects requested exactly once within a specified observation window.
The denominator counts distinct objects, not requests or bytes. In AABC, B and C are singletons: the object ratio is 2/3, while their share of requests is 2/4. The word hit here means an observed request, not a cache hit. [3]
The S3-FIFO paper measures sequence size by distinct objects and reports higher singleton fractions in shorter sampled sequences. A window containing 10% of a trace's distinct objects is not a window containing 10% of its requests. Its population summary does not establish monotonicity for every trace prefix. The formal observation concerns an expected ratio under a Zipf popularity model, with the least-popular object requested once and a subsequence ending in a one-hit wonder; it is not a guarantee about every finite trace. [1]
Quick demotion in S3-FIFO and SIEVE targets objects that are not reused soon enough to justify occupying cache space. A once-observed object may be reused after the window, and a globally popular object may have no reuse during one residency. Trace singletons and unused cache residencies are different measurements. [1] [2]
Across overlapping windows, pooling singleton-object counts and distinct-object counts weights windows by their distinct populations. It is not the unweighted mean of the per-window ratios. AABC with three-request windows gives pooled 4/5 versus unweighted 3/4. The linked exact counter keeps the numerators, denominators and window rule explicit. [3]
Relations
Limitations
- A frequency summary alone cannot identify cache misses: AABB and ABAB have no singleton objects, yet a cold one-slot cache with immediate admission misses twice and four times respectively. [3]
Citations
- Yang, Zhang, Qiu, Yue and Rashmi. FIFO Queues are All You Need for Cache Eviction. SOSP 2023, sections 3.1-3.2; DOI 10.1145/3600006.3613147.
- Zhang, Yang, Yue, Vigfusson and Rashmi. SIEVE is Simpler than LRU: an Efficient Turn-Key Eviction Algorithm for Web Caches. NSDI 2024, sections 2.1 and 5.1.
- Hesela: exact singleton-window accounting, worked denominators, counting method and tests.
Sources & caveats
- Source-based definition and deterministic worked examples; no production trace, cache-throughput experiment or paper replication is claimed.
- The counter enumerates all complete overlapping fixed-request-count windows through aggregated counts; this differs from the papers' sampled unique-object window design.