{
  "slug": "mithril",
  "term": "MITHRIL",
  "aliases": [
    "MITHRIL prefetching"
  ],
  "definition": "MITHRIL is a history-based cache prefetcher that mines recurring associations among moderately frequent block requests.",
  "note": "Mechanism: Logical request positions reveal associations without application-context tags. The optimized design usually records cache misses; minimum and maximum support exclude insufficiently observed and overly frequent blocks. [paper]\n\nMemory budget: Recording, mining and prefetch metadata consume part of the cache budget, reducing space available for cached data. [paper]\n\nTail latency: In the CP w94 replay, MITHRIL with LRU had a 2,551-microsecond median versus 3,934 for AMP, but a 10,330-microsecond 99th percentile versus 7,765. A lower median did not imply a better tail. AMP here means Adaptive Multi-stream Prefetching, not the program-context buffer-caching framework. The backend was a magnetic EBS volume, not a modern SSD benchmark. [paper]\n\nScope: The hit-ratio evaluation used 106 CP and 29 MSR traces. C-Miner and QuickMine were not direct experimental baselines. Warmup and late prefetches matter when translating hit ratios into latency. [paper]\n\nImplementation: The pinned C artifact exposes miss, eviction, combined and every-request recording modes, plus bounded metadata and prefetch-list controls. These settings must accompany comparisons. [code]",
  "status": "research",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-30",
  "related": [
    "c-miner",
    "quickmine",
    "table-based-prefetching",
    "prefetch-wastage",
    "tail-latency"
  ],
  "citations": [
    {
      "id": "paper",
      "title": "Yang et al. MITHRIL: Mining Sporadic Associations for Cache Prefetching. SoCC 2017, sections 4-5 and Table 3.",
      "url": "https://junchengyang.com/publication/socc17-Mithril.pdf",
      "accessed": "2026-11-30"
    },
    {
      "id": "code",
      "title": "CMimircache: Mithril.h, commit 359adc17e39ad9753c611e6cc51ca250ddedb09b",
      "url": "https://github.com/1a1a11a/CMimircache/blob/359adc17e39ad9753c611e6cc51ca250ddedb09b/CMimircache/cache/include/Mithril.h",
      "accessed": "2026-11-30"
    },
    {
      "id": "artifact",
      "title": "PyMimircache: artifact provenance and pinned C submodule",
      "url": "https://github.com/1a1a11a/PyMimircache/tree/60e378a53ee9e039ed8f88bcb137b0ce5496eb66",
      "accessed": "2026-11-30"
    }
  ],
  "provenance": [
    "Primary-paper review, not an independent performance replication. CP means CloudPhysics; MSR means Microsoft Research. DOI: 10.1145/3127479.3131210. [paper]",
    "CMimircache carries a GPL-3.0 license. The inspected snapshot is not established as the exact binary used for the paper. [artifact]"
  ]
}
