{
  "slug": "rio-file-cache",
  "term": "Rio file cache",
  "aliases": [
    "RAM I/O file cache"
  ],
  "definition": "Rio is a research file cache that combines memory protection with a platform-specific recovery path to preserve file data across operating-system crashes.",
  "note": "Alpha design: the 1996 implementation uses a protected registry and warm reboot to recover cached buffers. It forces KSEG accesses through the TLB so physical-address shortcuts cannot bypass page protection. Metadata ordering still matters. The study excludes power outages. [rio]\n\nPC design: the 2001 FreeBSD 2.2.7 implementation uses safe sync during the crash because reset can erase memory. Its final BIOS-based path avoids the normal virtual-memory system and kernel disk drivers. Successful control transfer and completed writes remain necessary. [ng01]\n\nEvaluation boundary: safe sync can preserve already-corrupted data. The 2001 experiments discard runs without a crash after 15 minutes; their corruption frequency describes that selected population, not a field failure rate. [ng01]\n\nTransaction boundary: Vista adds an undo protocol above Rio; retained bytes alone do not make several application updates atomic. [vista]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "These historical mechanisms are not a Linux configuration recommendation.",
      "citationIds": [
        "rio",
        "ng01"
      ]
    }
  ],
  "related": [
    "write-back-cache",
    "write-through-cache",
    "crash-consistency",
    "power-loss-protection",
    "vista-recoverable-memory"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": {
    "date": "1996",
    "citationIds": [
      "rio"
    ]
  },
  "lastSeen": null,
  "citations": [
    {
      "id": "rio",
      "title": "Chen et al. The Rio File Cache: Surviving Operating System Crashes. ASPLOS VII (1996), sections 1-3, 5.",
      "url": "https://web.eecs.umich.edu/~pmchen/papers/chen96.pdf",
      "accessed": "2026-11-28"
    },
    {
      "id": "hesela",
      "title": "Hesela: Cache survival depends on the failure being tested.",
      "url": "https://hesela.com/analyses/raid-write-hole-bitmap-ppl/#rio-failure-scope",
      "accessed": "2026-11-09"
    },
    {
      "id": "vista",
      "title": "Lowell and Chen. Free Transactions with Rio Vista. SOSP 1997, section 4, PDF p. 4.",
      "url": "https://web.eecs.umich.edu/~pmchen/Rio/papers/lowell97.pdf",
      "accessed": "2026-11-09"
    },
    {
      "id": "ng01",
      "title": "Ng and Chen. The Design and Verification of the Rio File Cache. IEEE TC 50(4), 2001, pp. 322-337, sections 1-4 and 8.",
      "url": "https://web.eecs.umich.edu/~pmchen/papers/ng01.pdf",
      "accessed": "2026-11-28"
    },
    {
      "id": "rio-versions",
      "title": "Rio project publication history: March 1996 technical report versus ASPLOS 1996 protection.",
      "url": "https://web.eecs.umich.edu/~pmchen/Rio/papers/index.html",
      "accessed": "2026-11-28"
    }
  ],
  "updated": "2026-11-28",
  "provenance": [
    "Source review, not an independent fault-injection experiment.",
    "The March 1996 technical report uses code patching; the ASPLOS version changes the protection method. Performance figures from these versions are not interchangeable. [rio-versions]"
  ]
}
