
Ahead of the release of Linux Kernel 6.9, David Sterba from SUSE has introduced updates for the Btrfs file system, which include not only stability improvements and bug fixes but also performance optimizations.
Enhancements in Btrfs Performance
Among the key performance optimizations for Btrfs in Linux 6.9, Sterba highlights the following improvements:
Log acceleration: slight acceleration of logging when the reallocated structure is pre-allocated only once, which reduces latency and decreases lock contention.
Increased throughput: slight increase in throughput (+6%), reduced lock contention after clearing deferred allocation bits, applicable to several common types of workloads.
Skip full quota recalculation: If a new link is added in the same transaction, the full quota recalculation can be skipped.
These optimizations not only improve the overall performance of Btrfs but also make its usage more efficient across various workloads.
Additional Btrfs Enhancements
In addition to the aforementioned optimizations, Btrfs in Linux 6.9 will receive fixes for Zstd compression, improvements in debug code, enhanced error handling capabilities, preparation for more granular sector lock splitting, and code refactoring. All these changes aim to boost the stability, security, and performance of the file system.
Source: linux.org.ru
