Linux 5.17 further optimizes the Btrfs file system: directory deletion is 20%-40% faster

As the popularity of the Btrfs filesystem has grown, this seems to have contributed to the enthusiasm and development work upstream. In Linux Kernel 5.17 version, a new round of performance optimization has been prepared for Btrfs. Catalog records now require less metadata, which means catalog deletions are now 20-40% faster.

join us on telegram

Another big win for Linux Kernel 5.17 is that free space tree entries are now also indexed and searched by size, which reduces latency by 30% and searches time by 30%. For those using Btrfs in partitioned mode, partition information is now cached during the mounting process to speed up repeated queries by about 50%. Additionally, tree node locking code arguments are also reduced when inserting keys, and no splitting is required, yielding about 1~20% improvement in the FS-Mark benchmark.

Leave a Comment