Btrfs Async Buffered Writes Slated For Linux 6.1 - 2x Throughput Improvement

Written by Michael Larabel in Linux Storage on 25 September 2022 at 10:20 AM EDT. 109 Comments
LINUX STORAGE
Queued up in the Btrfs for-next Git repository ahead of the Linux 6.1 merge window is support for async buffered writes that can offer a more than two times throughput improvement.

Meta (Facebook) engineer Stefan Roesch has been working on patches to add support for async buffered writes for both Btrfs and IO_uring. The benchmark results of this work are quite impressive:


Roesch commented of the performance results:
For an io depth of 1, the new patch improves throughput by over two times (compared to the existing behavior, where buffered writes are processed by an io-worker process) and also the latency is considerably reduced. To achieve the same or better performance with the existing code an io depth of 4 is required. Increasing the iodepth further does not lead to improvements.

The set of patches culminating with Btrfs async buffered writes being wired up is queued as of Friday in Kdave's for-next branch of Btrfs material ahead of the Linux 6.1 merge window opening in early October.

See this linux-btrfs mailing list series of the patch series for more background on this work.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week