Btrfs Async Discard Support Looks To Be Ready For Linux 5.6

Written by Michael Larabel in Linux Storage on 18 January 2020 at 06:59 AM EST. 4 Comments
LINUX STORAGE
After months of work by Facebook engineers, it looks like the new async discard support for Btrfs is ready for the upcoming Linux 5.6 cycle as a win for this Linux file-system on solid-state storage making use of TRIM/DISCARD functionality.

Btrfs has been handling its DISCARD functionality synchronously during the transaction commit, but that can lead to performance issues depending upon the amount of TRIM'ing required and how the drive behaves. With this async discard support, the work is punted off the transaction commit.

By doing the SSD DISCARD work asynchronously, Facebook found on their Btrfs servers that the discarding is done more efficiently and read latencies were reduced.

This async discard implementation for Btrfs was queued into the for-next branch ahead of the upcoming Linux 5.6 merge window. So unless any nasty issues come about, this should be yet another feature of the quite frankly super-feature-packed Linux 5.6 kernel.

More details on the Btrfs async discard code can be found via this code comment.
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