ByteFS: System Support for (CXL-based) Memory-Semantic Solid-State Drives

Shaobo Li, Yirui Eric Zhou, Hao Ren, Jian Huang

TL;DR

This paper introduces ByteFS, a novel file system designed for emerging memory-semantic SSDs (M-SSDs) that offer both byte-addressable and block-addressable access. ByteFS significantly boosts performance and reduces I/O amplification by intelligently adapting its access granularity and optimizing SSD firmware for these new devices.

What Problem Does This Paper Address?

Modern storage devices are evolving rapidly, with the emergence of memory-semantic SSDs (M-SSDs) that can be accessed at the byte level, similar to RAM, but with the capacity and cost benefits of NAND flash. These M-SSDs leverage interfaces like PCIe and CXL. However, existing file systems are primarily designed for block-based access and cannot fully exploit the byte-addressable capabilities of M-SSDs, leading to performance bottlenecks and I/O amplification. Furthermore, the underlying flash memory still operates at page granularity, creating a mismatch that traditional file systems struggle to manage efficiently. This paper addresses the need for a file system that can effectively utilize the dual byte/block access of M-SSDs and bridge the granularity gap between host access and flash storage.

Methods

ByteFS is a co-designed system involving both host-side file system modifications and SSD firmware enhancements.

  • Dual Byte/Block Interface Support: ByteFS intelligently selects between byte and block access based on the operation and data access patterns. For small, frequently updated metadata or data, it uses the byte interface to reduce overhead. For larger, sequential accesses, it leverages the block interface for efficiency.
  • Log-Structured SSD Firmware: The SSD's internal DRAM is managed as a log-structured write buffer. This allows byte-granular writes to be appended efficiently, coalescing them before flushing to flash. This significantly reduces the number of flash writes and hides flash latency.
  • Coordinated Caching: ByteFS avoids redundant caching by primarily using the host's page cache and the SSD's DRAM as a write buffer, rather than a full page cache.
  • Transaction Support: ByteFS implements a lightweight transactional mechanism using firmware-level logging to ensure atomic and crash-consistent metadata and data updates.
  • Interface Selection Policy: For data I/O, ByteFS employs a copy-on-write (CoW) mechanism in the host page cache to determine the modified ratio of a page. This ratio then guides the decision between byte or block writes for dirty pages.

Datasets

The paper does not introduce new datasets. Instead, it uses standard benchmarks for evaluation:

  • Filebench: Used for micro-benchmarks (create, delete, mkdir, rmdir) and macro-benchmarks (Varmail, Fileserver, Webproxy, Webserver, OLTP).
  • YCSB (Yahoo! Cloud Serving Benchmark) on RocksDB: Used to evaluate performance on real-world application workloads.

Key Insights and Ideas

  • Byte-addressability is a game-changer for SSDs: The ability to access storage at the byte level, combined with the cost-effectiveness of NAND flash, presents a significant opportunity for performance improvements in file systems.
  • File system design needs to adapt to new hardware: Traditional file systems, built for block I/O, are ill-suited for M-SSDs. A fundamental redesign is necessary to exploit their capabilities.
  • Bridging the granularity gap is crucial: The mismatch between byte-level host access and page-level flash access is a key challenge that ByteFS addresses with its log-structured firmware.
  • Intelligent interface selection is key to performance: Dynamically choosing between byte and block access based on operation type and data locality is essential for maximizing performance and minimizing I/O amplification.
  • Firmware-level optimizations are powerful: Reorganizing the SSD's internal DRAM as a log-structured write buffer and implementing efficient indexing significantly reduces overhead and improves write performance.

Key Results

  • Performance Improvement: ByteFS outperforms state-of-the-art file systems (Ext4, F2FS, NOVA, PMFS) by up to 2.7x in throughput across various benchmarks.
  • I/O Traffic Reduction: ByteFS reduces host-SSD I/O traffic by up to 5.1x (specifically, metadata traffic is reduced by up to 25.3x).
  • Flash Traffic Reduction: ByteFS reduces SSD flash traffic by an average of 2.1x to 3.2x compared to baseline file systems.
  • Crash Consistency: ByteFS ensures crash consistency and data recovery, with recovery times averaging 4.2 seconds.
  • Cost-Effectiveness: M-SSDs offer a significantly lower cost per GB compared to DRAM and NVM, making ByteFS a practical solution for high-performance storage.

Limitations and Future Work

  • NVM File System Limitations: The paper notes that existing NVM file systems (like NOVA and PMFS) perform worse than ByteFS because they are not optimized for the characteristics of flash-based M-SSDs, particularly their higher PCIe latency and flash access bottlenecks.
  • Emulation vs. Real Hardware: While ByteFS was tested on both a real programmable SSD and an emulator, the performance characteristics might vary slightly between the two.
  • Future Work: The paper suggests that further research could explore more sophisticated interface selection policies, optimize the log cleaning process, and investigate the integration of ByteFS with CXL protocols for even lower latency. The authors also highlight the potential for ByteFS to serve as a foundation for future memory-semantic storage systems.

Summary updated

BibTeX
@inproceedings{li2025bytefs,
  author = {Shaobo Li and Yirui Eric Zhou and Hao Ren and Jian Huang},
  title = {{ByteFS: System Support for (CXL-based) Memory-Semantic Solid-State Drives}},
  booktitle = {ASPLOS},
  year = {2025},
}
Figure