Bug 29980 - [bug]: Linux 5.16 has a major regression in btrfs causing extreme SSD/HDD stress!
Summary: [bug]: Linux 5.16 has a major regression in btrfs causing extreme SSD/HDD str...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL: https://lore.kernel.org/linux-btrfs/C...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-01 08:10 CET by Nikolay Sabelnikov
Modified: 2022-02-01 21:55 CET (History)
1 user (show)

See Also:
Source RPM: kernel-5.16.*
CVE:
Status comment:


Attachments

Description Nikolay Sabelnikov 2022-02-01 08:10:00 CET
Linux 5.16 saw some changes to the btrfs defragmentation code that introduced a regression causing extreme write I/O (and the associated single-core 100% CPU usage by a kernel thread named btrfs-cleaner).  Obviously, this is defragmentation in an endless loop.

 This affects volumes mounted with -ossd, autodefrag in fstab, which is the default on most distributions.

 Check if your distribution has this option and we recommend that you remove this flag for a while if you have a Linux 5.16.x kernel!
Nikolay Sabelnikov 2022-02-01 08:10:09 CET

CC: (none) => 79625490833

Nikolay Sabelnikov 2022-02-01 11:38:23 CET

Source RPM: Btrfs-cleaner => linux-btrfs

Nikolay Sabelnikov 2022-02-01 14:58:40 CET

Source RPM: linux-btrfs => kernel-516.*

Nikolay Sabelnikov 2022-02-01 14:58:49 CET

Source RPM: kernel-516.* => kernel-5.16.*

Comment 1 Lewis Smith 2022-02-01 20:12:11 CET
Thank you for the report.

I can do no more than assign this to the kernel team.

Assignee: bugsquad => kernel

Comment 2 Thomas Backlund 2022-02-01 21:45:47 CET
Fixed in 5.16.5 currently building

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 3 Thomas Backlund 2022-02-01 21:55:24 CET
actually... I had the fixes already in 5.16.4-2 :)

Note You need to log in before you can comment on or make changes to this bug.