TABLEFS
TABLEFS is a research filesystem that packs metadata and small-file contents into a LevelDB table over an underlying local filesystem.
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. [1]
Packing 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. [1]
The 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. [1] [2]
A 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. [3]
Relations
- related
- LevelDB, Prefix Bloom filter
Limitations
- A positive directory-prefix test does not prove that a particular filename exists; entries under that prefix still need examination. [3]
Citations
- Kai Ren and Garth Gibson. TABLEFS: Enhancing Metadata Efficiency in the Local File System. USENIX ATC 2013, pp. 145-156; sections 3 and 4.
- LevelDB 1.23 guide: Atomic Updates, Synchronous Writes and Key Layout.
- RocksDB: Prefix Seek, query scope and comparator requirements.
Further reading
Sources & caveats
- Source review of the ATC 2013 design and evaluation, contrasted with LevelDB 1.23 and RocksDB documentation; no native TABLEFS benchmark or crash experiment.