Re: [PATCH] btrfs: scrub: per-device bandwidth control
From: Holger Hoffstätte <hidden>
Date: 2021-05-18 17:01:27
From: Holger Hoffstätte <hidden>
Date: 2021-05-18 17:01:27
On 2021-05-18 16:49, David Sterba wrote:
Add sysfs interface to limit io during scrub. We relied on the ionice
This is very useful, thank you! Running scrubs on three devices with 10M/20M/30M bandwidth limit showed up in iotop/nmon exactly as expected, and dynamically changing the values to speed up/slow down also worked right away - very nice. My only suggestion would be:
- raw value is in bytes
..for this to be in megabytes only (maybe also renaming scrub_speed_max to scrub_speed_max_mb?), because otherwise everyone will forget the unit and wonder why scrub is running with 50 bytes/sec. IMHO bytes/kbytes are not really practical scrub speeds. Other than that have a: Tested-by: Holger Hoffstätte <redacted> cheers, Holger