{
  "slug": "fast-fair",
  "term": "FAST/FAIR persistent B+ tree",
  "aliases": [
    "FAST and FAIR",
    "FAST+FAIR",
    "FAST&FAIR",
    "Failure-Atomic ShifT",
    "Failure-Atomic In-place Rebalance"
  ],
  "definition": "FAST/FAIR is a persistent B+ tree design that orders in-place updates so readers can interpret partially completed shifts and rebalancing.",
  "note": "Mechanism: FAST skips a key between duplicate adjacent pointers during a shift. FAIR persists a new sibling and its link before removing migrated entries from the old node. The design relies on word-sized atomic stores and enforced persistence ordering, not cache-line atomicity. [fast-fair-paper]\n\nConcurrency: Readers avoid read locks, but writers still coordinate with locks. Scan direction and a change counter govern read retries. The paper distinguishes read-uncommitted lock-free search from its serializable leaf-lock variant. [fast-fair-paper]\n\nImplementation scope: At revision 0f047e88, concurrent allocates pages with posix_memalign, while concurrent_pmdk has a separate pool create/open path. An ordinary-memory benchmark is not evidence of restart recovery, and the existence of a PMDK path alone does not establish complete crash correctness. [fast-fair-code] [fast-fair-pmdk]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "The 2018 x86 evaluation uses Quartz latency emulation over DRAM and assumes DRAM bandwidth; its results are not modern-device measurements.",
      "citationIds": [
        "fast-fair-paper"
      ]
    }
  ],
  "related": [
    "b-plus-tree",
    "persistent-memory",
    "persistence-ordering",
    "fptree",
    "recipe",
    "bztree"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-04",
  "citations": [
    {
      "id": "fast-fair-paper",
      "title": "Hwang et al. Endurable Transient Inconsistency in Byte-Addressable Persistent B+-Tree. FAST 2018, pp. 187-200, sections 3-7.",
      "url": "https://www.usenix.org/system/files/conference/fast18/fast18-hwang.pdf",
      "accessed": "2026-12-04"
    },
    {
      "id": "fast-fair-code",
      "title": "FAST_FAIR 0f047e88: concurrent page allocator and tree constructor.",
      "url": "https://github.com/DICL/FAST_FAIR/blob/0f047e88eb5005afcd02ccb2a7c1289e17702cc3/concurrent/src/btree.h",
      "accessed": "2026-12-04"
    },
    {
      "id": "fast-fair-pmdk",
      "title": "FAST_FAIR 0f047e88: concurrent_pmdk test program, pool creation and reopening.",
      "url": "https://github.com/DICL/FAST_FAIR/blob/0f047e88eb5005afcd02ccb2a7c1289e17702cc3/concurrent_pmdk/src/test.cpp",
      "accessed": "2026-12-04"
    },
    {
      "id": "hesela-pmem",
      "title": "Hesela: FAST/FAIR tree states and implementation boundaries.",
      "url": "https://hesela.com/analyses/pmem-persistence-domains-dax/#fast-fair",
      "accessed": "2026-12-04"
    }
  ],
  "provenance": [
    "Paper and pinned-source review; no execution of the historical index, crash-injection test or hardware performance reproduction.",
    "The publication year identifies research, not commercial availability. The USENIX proceedings record supplies no DOI."
  ]
}
