TokuFS
TokuFS is a research filesystem that uses Fractal Tree indexes and buffered updates to organize file data and metadata.
The 2012 design separates metadata and data indexes. Data keys combine a full pathname with a block number for 512-byte blocks; metadata keys sort by directory depth before pathname. Renaming a directory rewrites descendant keys, and the prototype does not support hard links. [1]
Upsert messages describe changes without first reading the old block. A partial write specifies a byte range; a previously absent block begins with zero-valued bytes. But exclusive creation must determine whether a file already exists before returning success or an error. A deferred update cannot eliminate every search. [2]
The reported evaluation uses a user-space library, not the FUSE path, on an Opteron system with a 1 TB, 7200 rpm disk. Those results do not establish current SSD performance. [1] Later BetrFS work moved write-optimized indexing into the kernel and discusses the extra queries imposed by the historical FUSE path. [3]
Figure 4 prints 72 MB, 15.74 s and 1.7 MB/s for TokuFS. Applying its size/time definition gives about 4.57 MB/s. Which printed field is wrong remains unresolved; this quotient is not a corrected benchmark. Stored size/time also is not a device-written-byte counter. Download the checked arithmetic and ordering example. [1] [5] [6]
The available source snapshot is from 2014 and names TokuKV as a prerequisite. It is not identified as the exact 2012 experimental revision. Source availability alone does not establish reproducibility of the published timings. [4]
Relations
- related
- BetrFS, Buffered upsert, Full-path indexing
Citations
- Esmet, Bender, Farach-Colton and Kuszmaul. The TokuFS Streaming File System. HotStorage 2012, sections 3-4 and Figure 4.
- TokuFS authors. HotStorage 2012 slides, pages 22-32: ordering, buffered updates and exclusive creation.
- Jannen et al. BetrFS: A Right-Optimized Write-Optimized File System. FAST 2015, sections 5.2 and 8.
- esmet/tokufs README at baab5445b02705977e389156e41d1b0c9a3f2d7d, committed 2014-02-19.
- Hesela: runnable TokuFS table audit and synthetic ordering example (Python standard library).
- Hesela: transcribed cells, exact quotients and conditional rounding checks.
Further reading
Sources & caveats
- Primary-source review, arithmetic audit and synthetic ordering counterexample; no native TokuFS benchmark or crash experiment.