F2FS With Linux 5.12 Lets You Configure The Zstd/LZ4 Compression Ratio

Written by Michael Larabel in Linux Storage on 18 February 2021 at 05:03 PM EST. 6 Comments
LINUX STORAGE
The Flash-Friendly File-System (F2FS) with the Linux 5.12 kernel will allow configuring the compression ratio when enabling the transparent file-system compression support with LZ4 or Zstd.

Jaegeuk Kim sent in the F2FS changes this week for the Linux 5.12 merge window. Most exciting is configurable compression ratio for its file-system compression rather than sticking to just the default compression level. When mounting a F2FS file-system with the "compress_algorithm" mount option, ":level" can be appended to the option where "level" is the compression level desired. This allows for squeezing more space out of F2FS file-systems with a higher compression ratio for LZ4 or Zstd.

Along with allowing a compression level to be specified via the compress_algorithm mount option, F2FS with Linux 5.12 also introduces a "checkpoint_merge" mount option that will now create a kernel daemon to merge concurrent checkpoint requests in trying to eliminate redundant checkpoint problems.

Plus the F2FS pull request also has a number of other fixes and code improvements to this file-system driver.
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