Btrfs gains Zstd and reflink performance boosts in Linux 7.4
Linux 7.4 brings several Btrfs performance improvements including faster Zstd decompression, reduced inode extent map lock contention, and optimized reflink operations.
Summary
The in-development Linux 7.4 kernel includes multiple Btrfs optimizations. Zstd decompression sees roughly +8MB/s speed-ups for transparently compressed filesystems. Lock contention reductions improve shrinker performance by 10-20% in specific inode scenarios. Reflink operations are faster due to reordered locking and flushing. The update also contains error handling fixes, bug fixes, and code clean-ups.
What changes in Btrfs for Linux 7.4
- Zstd decompression: ~+8MB/s throughput increase for transparent compression users
- Inode extent map lock: reduced contention yields 10-20% time reduction in shrinker paths for inodes without extent maps
- Reflink optimization: reordered locking and flushing targets more common case patterns
- Additional work: error handling fixes, bug fixes, and general code clean-ups
Why it matters
These incremental improvements benefit production Btrfs deployments relying on compression and reflink-heavy workloads such as container image layers and VM disk images. The lock contention reduction specifically addresses latency-sensitive shrinker operations.
Original reference: www.phoronix.com →