DFS: A file system for virtualized flash storage

William K. Josephson, Lars Ailo Bongo, Kai Li, David Flynn

Presented at ASPLOS 2010, DFS (Direct File System) is a file system designed from the ground up to exploit the unique properties of flash memory. By abandoning the "magnetic disk" legacy of traditional file systems, the authors achieved massive performance gains with a codebase only a fraction of the size of industry standards like ext3.

The Problem: The "Double Abstraction" Bottleneck

Most modern file systems (like ext3 or NTFS) were designed for magnetic hard drives. These drives have mechanical heads that must physically move, making sequential access much faster than random access. Consequently, traditional file systems are packed with complex logic to group data together and minimize "seeks."

Flash memory has no moving parts, but it has its own quirks: you can’t overwrite data directly (you must erase a large "block" first), and cells wear out if written to too often. To make flash look like a standard hard drive, manufacturers usually add a Flash Translation Layer (FTL). The authors argue that this "double abstraction"—a file system designed for disks sitting on top of an FTL designed to mimic disks—creates a "thick," inefficient software stack. This bottleneck prevents applications from reaching the true raw speed of high-end flash hardware.

Comparison of traditional block storage vs. the DFS virtualized flash storage architecture.

Architecture and Methods

The core innovation of DFS is a division of labor between the file system and the storage hardware (specifically FusionIO’s ioDrive).

Virtualized Flash Storage Layer (VFSL)

Instead of a simple block device, the hardware/driver provides a massive, sparse 64-bit virtual address space ($2^{73}$ bytes). It handles the "messy" parts of flash: wear-leveling, bad block management, and physical allocation.

The "Thin" File System (DFS)

Because the VFSL handles allocation, DFS is incredibly simple. It assigns each file a giant, contiguous chunk of the virtual address space (defaulting to 2TB).

DFS utilizes a massive sparse virtual address space to simplify file allocation.
  • No Allocation Trees: Finding a file's block is a simple mathematical offset, not a walk through a complex B-tree or inode map.
  • Atomic Updates: DFS leverages the VFSL’s ability to perform atomic page updates, allowing for crash recovery without the heavy performance penalty of traditional journaling.
  • Direct Access: DFS encourages applications to bypass the Linux buffer cache. Since flash is so fast, the CPU overhead of managing a cache often becomes a bigger bottleneck than the storage itself.

Evaluation and Key Results

The authors evaluated DFS against ext3 using microbenchmarks (Iozone) and real-world workloads like Quicksort, Google N-Gram Corpus queries, and TPC-H database benchmarks.

  • Raw Performance: DFS delivered 94,000 read IOPS and 71,000 write IOPS on the ioDrive hardware.
  • Bandwidth: In sequential 1MB transfers, DFS achieved 769 MB/s read and 686 MB/s write speeds, nearly tripling the performance of an enterprise Intel SSD using a traditional stack.
  • Application Speedups: N-Gram queries were 2.47x faster on DFS than ext3, and Quicksort saw a 1.54x speedup. TPC-H database performance improved by 22%.
  • CPU Efficiency: DFS consistently required less CPU power per I/O, freeing up processor cycles for the actual application logic.

Conclusion and Limitations

DFS demonstrates that simplicity is a feature; it is roughly 1/8th the size of ext3 (3,289 lines vs. 24,708). By removing legacy disk-optimization logic, the system becomes easier to maintain and faster to execute.

However, moving FTL logic into the host's device driver consumes host CPU and RAM. Additionally, the initial implementation lacked advanced features like snapshots and efficient directory scaling for millions of files. Finally, DFS was tightly coupled with FusionIO’s specific virtualization layer, limiting its portability to generic consumer SSDs without similar driver support.

Summary updated

BibTeX
@article{josephson2010dfs,
  author = {William K. Josephson and Lars Ailo Bongo and Kai Li and David Flynn},
  title = {{DFS: A file system for virtualized flash storage}},
  journal = {ACM Trans. Storage},
  year = {2010},
  doi = {10.1145/1837915.1837922},
}
Figure