{
  "slug": "robinhood-caching",
  "term": "RobinHood caching",
  "aliases": [
    "RobinHood",
    "tail-latency-aware caching"
  ],
  "definition": "RobinHood is a cache-partitioning system that shifts capacity toward backends that delay requests near a target latency percentile.",
  "note": "Request objective: A parallel wait-for-all request finishes at its slowest query. Reducing a different query's time may leave that request unchanged. RobinHood allocates capacity using request-level blocking, not merely query popularity. [paper]\n\nController: The paper counts each backend's slowest-query appearances in requests between P98.5 and P99.5. Every five seconds, its basic rule pools 1% of each partition and redistributes it in proportion to these counts. Backends with excessive unused allocation are temporarily excluded. [paper]\n\nConfiguration matters: In the pinned author code, crit_path_window consumes crit_count2, the P98.5-P99.5 statistic. The selector named robinhood instead sorts backend query p99 values. A selector's name alone does not identify the paper's request-blocking policy. [controller] [stats]\n\nConstructed example: Of 100 requests, 98 query only A; two query A and B simultaneously. Misses take 10 ms and 100 ms respectively; hits take 1 ms. With one equal-size key preloaded and fixed, caching A gives 100/102 query hits but request p99 = 100 ms. Caching B gives 2/102 hits but p99 = 10 ms. Mean request latency instead favors A: 2.98 versus 10 ms. Nearest-rank p99, no queues or insertion. [example]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "Insufficient capacity or largely uncacheable work can prevent repartitioning from fixing the request tail.",
      "citationIds": [
        "paper"
      ]
    },
    {
      "text": "Backends sharing a storage bottleneck need joint consideration; independently shifting cache can also harm another service sharing that backend.",
      "citationIds": [
        "paper"
      ]
    },
    {
      "text": "The finite example compares fixed placements, not the adaptive controller or a measured service.",
      "citationIds": [
        "example"
      ]
    }
  ],
  "related": [
    "tail-latency",
    "request-hit-ratio",
    "cliffhanger",
    "least-hit-density"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-29",
  "citations": [
    {
      "id": "paper",
      "title": "Berger et al. RobinHood: Tail Latency Aware Caching. OSDI 2018, pp. 195-212; sections 3, 4.3 and 6.",
      "url": "https://www.usenix.org/system/files/osdi18-berger.pdf",
      "accessed": "2026-11-29"
    },
    {
      "id": "controller",
      "title": "RobinHood author code: controller selection and capacity weights, commit c94801d833525b49e1f1e78e6ca2c13f1289f371.",
      "url": "https://github.com/dasebe/robinhoodcache/blob/c94801d833525b49e1f1e78e6ca2c13f1289f371/nuapp/src/controller.py",
      "accessed": "2026-11-29"
    },
    {
      "id": "stats",
      "title": "RobinHood author code: request-blocking percentile windows, commit c94801d833525b49e1f1e78e6ca2c13f1289f371.",
      "url": "https://github.com/dasebe/robinhoodcache/blob/c94801d833525b49e1f1e78e6ca2c13f1289f371/go/src/statserver/statserver.go",
      "accessed": "2026-11-29"
    },
    {
      "id": "example",
      "title": "Hesela. Fixed-placement request-latency counterexample: assumptions, results, code and tests.",
      "url": "https://hesela.dev/research/robinhood/README.md",
      "accessed": "2026-11-29"
    },
    {
      "id": "context",
      "title": "Hesela. Fan-out completion and the difference between slow RAID hours and request latency.",
      "url": "https://hesela.com/analyses/storage-tail-slowdowns-raid-fanout/",
      "accessed": "2026-11-29"
    }
  ],
  "provenance": [
    "The paper's evaluation uses a testbed with workloads derived from production statistics; its reported improvements are not universal service guarantees. [paper]",
    "Code inspected at the pinned revision. The selector discrepancy is a reproducibility caveat, not evidence that the published experiments used the wrong policy. [controller] [stats]",
    "RobinHood caching is distinct from the Robinhood filesystem policy engine."
  ]
}
