News: 0001232905

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux 5.10.8 Kernel Released - Finally Fixes That Btrfs Performance Regression

([Linux Kernel] 5 Hours Ago Linux 5.10.8)


Linux 5.10.8 is out today as the latest stable release for the Linux 5.10 LTS series. Making this point release notable is that it finally addresses the 5.10 Btrfs performance regression.

As noted back on Christmas, [1]Linux 5.10 was seeing significant slowdowns on Btrfs . For simply unpacking a Linux kernel source .tar.zst file it could easily take multiple times longer on this stable kernel version.

While patches for addressing this poor Btrfs behavior on Linux 5.10 were floating around since before the end of the year, it's taken until now to get them tested and queued up for mainline integration. Linux 5.11 meanwhile has a plethora of Btrfs improvements.

With [2]shrinking delalloc pages instead of full inodes the main issue should be addressed. As for the original cause, " this introduced a pretty serious performance regression. To reproduce the user untarred the source tarball of Firefox (360MiB xz compressed/1.5GiB uncompressed), and would see it take anywhere from 5 to 20 times as long to untar in 5.10 compared to 5.9. This was observed on fast devices (SSD and better) and not on HDD. The root cause is because before we would generally use the normal writeback path to reclaim delalloc space, and for this we would provide it with the number of pages we wanted to flush. The referenced commit changed this to flush that many inodes, which drastically increased the amount of space we were flushing in certain cases, which severely affected performance. "

Overall things should be in good shape with Linux 5.10.8. Btrfs developer Josef Bacik commented on that page, " 5.10+patch is significantly faster than plain 5.9 because of my patch series "Change data reservations to use the ticketing infra" which contained the patch that introduced the regression, but generally improved the overall ENOSPC flushing mechanisms. "

So all should be well now on Linux 5.10 LTS stable as of [3]Linux 5.10.8 . No other pressing regressions for this LTS kernel come to mind at this point.



[1] https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.10-Btrfs-Regression

[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=e3b5252b5cdb445

[3] https://lore.kernel.org/lkml/1610890747349@kroah.com/T/#md05219485046f5cf32d770e4547fb42710343581

phoronix

Don't steal... the IRS hates competition!