{
  "slug": "one-hit-wonder-ratio",
  "term": "One-hit-wonder ratio",
  "aliases": [
    "One-hit ratio",
    "Singleton-object ratio"
  ],
  "definition": "The one-hit-wonder ratio is the fraction of distinct objects requested exactly once within a specified observation window.",
  "note": "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. [method]\n\nThe 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. [s3fifo]\n\nQuick 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. [s3fifo] [sieve]\n\nAcross 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. [method]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "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.",
      "citationIds": [
        "method"
      ]
    }
  ],
  "related": [
    "s3-fifo",
    "sieve-eviction",
    "working-set-footprint",
    "request-hit-ratio"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-29",
  "citations": [
    {
      "id": "s3fifo",
      "title": "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.",
      "url": "https://www.pdl.cmu.edu/PDL-FTP/Storage/FIFOqueues-SOSP23.pdf",
      "accessed": "2026-11-27"
    },
    {
      "id": "sieve",
      "title": "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.",
      "url": "https://www.usenix.org/system/files/nsdi24-zhang-yazhuo.pdf",
      "accessed": "2026-11-27"
    },
    {
      "id": "method",
      "title": "Hesela: exact singleton-window accounting, worked denominators, counting method and tests.",
      "url": "https://hesela.dev/research/one-hit-windows/method.md",
      "accessed": "2026-11-27"
    }
  ],
  "provenance": [
    "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."
  ]
}
