Btrfs For Linux 4.15 Picks Up Compression Improvements, Continued Optimizations

Written by Michael Larabel in Linux Kernel on 13 November 2017 at 11:30 AM EST. 5 Comments
David Sterba of SUSE has submitted the Btrfs file-system feature changes queued for the Linux 4.15 kernel.

One user-facing change with Btrfs in Linux 4.15 is that it will support specifying a Zlib compression level if using this means of transparent file-system compression. Via the existing compress mount option, the Zlib compression level can be specified, e.g. -o compress=zlib:6. While the LZO and zSTD compression options for Btrfs remain unchanged.

On the Btrfs compression front, Linux 4.15 will now populate the compression heuristics logic with data sampling results for trying to gauge the compressibility of a file. The new Btrfs code is looking at repeated patterns within files, unique byte values and distributions, and other items to try to determine if compressing a given file is worthwhile. Btrfs developers warn that this code is still subject to further tuning.

Btrfs in Linux 4.15 also has a new ioctl around extent-to-inode mapping, enable indexing of Btrfs as a lower file-system in OverlayFS, speeding up the page cache readahead during sending on large files, and a wide variety of internal code improvements.

More details via the pull request.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of 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 automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week