{
  "slug": "mnemosyne",
  "term": "Mnemosyne",
  "aliases": [],
  "definition": "Mnemosyne is a research system that exposes persistent memory to user programs through persistent regions, update primitives and durable memory transactions.",
  "note": "Logging: Its raw word log reserves one bit per 64-bit stored word to distinguish log generations. Recovery checks the expected generation, changing it at wraparound, and stops at a missing word. The payload occupies the other 63 bits. [gcc-log] [gcc-recovery]\n\nOrdering: Detecting an incomplete log append does not make an append call durable. The paper separates append from flush and uses write-ahead redo logging for transactions. Its failure model assumes atomic writes of at least 64 bits. [paper]\n\nWorked model: A bounded Hesela example enumerates surviving-word subsets and shows counterexamples for a separately persisted tag, an old matching generation and payload corruption. It assumes trusted record length and head metadata, not a complete recovery engine. [hesela-model]\n\nContrast: Mnemosyne records new values for redo before installation; NV-Heaps copies whole objects into an undo log before modification. These are different recovery protocols. [paper] [nv-heaps-paper]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "The 2011 performance evaluation uses DRAM-based PCM emulation, not production persistent-memory hardware; its timing results do not establish performance on later devices.",
      "citationIds": [
        "paper"
      ]
    },
    {
      "text": "A generation tag is not a checksum and cannot establish transaction validity independently of framing, ordering and safe space reuse.",
      "citationIds": [
        "hesela-model"
      ]
    }
  ],
  "related": [
    "persistent-memory",
    "write-ahead-log",
    "persistence-ordering",
    "crash-consistency",
    "nv-heaps"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-05",
  "citations": [
    {
      "id": "paper",
      "title": "Volos, Tack and Swift. Mnemosyne: Lightweight Persistent Memory. ASPLOS 2011, sections 2, 4.4, 5 and 6.1.",
      "url": "https://pages.cs.wisc.edu/~swift/papers/asplos11_mnemosyne.pdf",
      "accessed": "2026-12-04"
    },
    {
      "id": "programme",
      "title": "ASPLOS 2011 technical programme: Mnemosyne.",
      "url": "https://asplos-conference.org/asplos2011/program.html",
      "accessed": "2026-12-04"
    },
    {
      "id": "gcc-log",
      "title": "Mnemosyne GCC port f9fc03f6: physical-log word layout and wraparound.",
      "url": "https://github.com/snalli/mnemosyne-gcc/blob/f9fc03f6eba3529c26725e8e99512e5257d2fc53/usermode/library/mcore/include/log/phlog_tornbit.h",
      "accessed": "2026-12-04"
    },
    {
      "id": "gcc-recovery",
      "title": "Mnemosyne GCC port f9fc03f6: m_phlog_tornbit_check_consistency.",
      "url": "https://github.com/snalli/mnemosyne-gcc/blob/f9fc03f6eba3529c26725e8e99512e5257d2fc53/usermode/library/mcore/src/log/phlog_tornbit.c",
      "accessed": "2026-12-04"
    },
    {
      "id": "gcc-readme",
      "title": "Mnemosyne GCC port f9fc03f6: README and build context.",
      "url": "https://github.com/snalli/mnemosyne-gcc/blob/f9fc03f6eba3529c26725e8e99512e5257d2fc53/README.md",
      "accessed": "2026-12-04"
    },
    {
      "id": "hesela-model",
      "title": "Hesela. Torn-bit logging: a bounded crash-state model and its counterexamples.",
      "url": "https://hesela.dev/research/mnemosyne/README.md",
      "accessed": "2026-12-04"
    },
    {
      "id": "nv-heaps-paper",
      "title": "Coburn et al. NV-Heaps. ASPLOS 2011, section 3.5: whole-object undo logging.",
      "url": "https://cseweb.ucsd.edu/~swanson/papers/Asplos2011NVHeaps.pdf",
      "accessed": "2026-12-05"
    }
  ],
  "provenance": [
    "The conference programme and original paper establish 2011; the pinned GCC-port README instead labels the paper ASPLOS 2012. The port is not identified as the exact evaluated revision.",
    "Source review and independent teaching model only. No native Mnemosyne build, persistent-memory hardware run or power-loss test was performed."
  ]
}
