Linux Kernel & OS

F2FS file system prepares large folio support for Linux 7.5 kernel

Key Takeaway

The F2FS file system is gaining support for multi-page folios in buffered I/O paths to improve performance.

Summary

Developer Nanzhe Zhao has been implementing large folio support for the Flash-Friendly File System (F2FS) to optimize buffered I/O paths. This update allows the file system to handle multi-page folios rather than being restricted to single pages for most readable and writable files.

The implementation is currently being integrated into the F2FS development branch and is targeted for inclusion in the Linux 7.5 kernel cycle. While most files will benefit from this change, compressed files are currently excluded from large folio support.

Technical implementation and block size improvements

  • Buffered I/O Optimization: The patches enable large folio support for the majority of readable and writable files, facilitating the use of multi-page folios to potentially increase throughput.
  • Folio Order Support: The update enables support for minimum folio orders greater than zero within the file system code.
  • Compressed File Limitation: Current implementation excludes compressed files from utilizing the large folio paths.
  • Flexible Block Sizes: A separate queued patch series allows for block sizes smaller than the kernel page size, such as supporting 4K blocks on ARM64 systems running 16K or 64K kernel page sizes without requiring on-disk format changes.

Why it matters

This development is particularly significant for ARM64 architectures where large kernel page sizes are common, as it allows for efficient 4K block operations. For Linux users and system administrators, the large folio support in F2FS promises improved I/O performance on flash-based storage devices once merged into the mainline kernel.

Original reference: www.phoronix.com →