{
  "slug": "tablefs",
  "term": "TABLEFS",
  "aliases": [
    "TableFS"
  ],
  "definition": "TABLEFS is a research filesystem that packs metadata and small-file contents into a LevelDB table over an underlying local filesystem.",
  "note": "Ren and Gibson's ATC 2013 design groups entries by parent inode number followed by filename. Large-file contents remain separate objects. An added per-SSTable Bloom filter summarizes parent inode numbers, allowing a directory scan to skip tables without that directory's entries. [tablefs-paper]\n\nPacking has a cost: the paper's directory-listing comparison found that retrieving names alone also brought in unneeded attributes and contents. The kernel-native version was not implemented; TABLEFS-Predict was an estimate, not a measured kernel implementation. The evaluation used a magnetic disk and does not establish present-day SSD performance. [tablefs-paper]\n\nThe prototype adds locks for read-modify-write metadata operations. LevelDB WriteBatch atomically applies mutations, but does not include an earlier Get in a transaction. Separately, its sync write option controls the synchronization request: batch atomicity alone does not promise power-loss durability. [tablefs-paper] [leveldb-guide]\n\nA useful distinction: a full-key lookup asks whether (directory, filename) exists; directory enumeration asks for every key with that directory prefix. RocksDB's separate prefix-seek design likewise requires a compatible extractor and comparator; it is not evidence that TABLEFS uses RocksDB. [prefix-guide]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "A positive directory-prefix test does not prove that a particular filename exists; entries under that prefix still need examination.",
      "citationIds": [
        "prefix-guide"
      ]
    }
  ],
  "related": [
    "leveldb",
    "prefix-bloom-filter"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "tablefs-paper",
      "title": "Kai Ren and Garth Gibson. TABLEFS: Enhancing Metadata Efficiency in the Local File System. USENIX ATC 2013, pp. 145-156; sections 3 and 4.",
      "url": "https://www.usenix.org/system/files/conference/atc13/atc13-ren.pdf",
      "accessed": "2026-12-01"
    },
    {
      "id": "leveldb-guide",
      "title": "LevelDB 1.23 guide: Atomic Updates, Synchronous Writes and Key Layout.",
      "url": "https://github.com/google/leveldb/blob/99b3c03b3284f5886f9ef9a4ef703d57373e61be/doc/index.md",
      "accessed": "2026-12-01"
    },
    {
      "id": "prefix-guide",
      "title": "RocksDB: Prefix Seek, query scope and comparator requirements.",
      "url": "https://github.com/facebook/rocksdb/wiki/Prefix-Seek",
      "accessed": "2026-12-01"
    },
    {
      "id": "hesela",
      "title": "Hesela: prefix membership and ordering in LSM read paths",
      "url": "https://hesela.com/analyses/bloom-filters-lsm-read-cost/#prefix-order",
      "accessed": "2026-12-01"
    }
  ],
  "updated": "2026-12-01",
  "provenance": [
    "Source review of the ATC 2013 design and evaluation, contrasted with LevelDB 1.23 and RocksDB documentation; no native TABLEFS benchmark or crash experiment."
  ]
}
