Johannes Thumshirn 3687fcb075 btrfs: zoned: make auto-reclaim less aggressive
The current auto-reclaim algorithm starts reclaiming all block groups
with a zone_unusable value above a configured threshold. This is causing
a lot of reclaim IO even if there would be enough free zones on the
device.

Instead of only accounting a block groups zone_unusable value, also take
the ratio of free and not usable (written as well as zone_unusable)
bytes a device has into account.

Tested-by: Pankaj Raghav <p.raghav@samsung.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2022-05-16 17:03:11 +02:00
..
2022-01-07 14:18:23 +01:00
2021-06-22 14:11:57 +02:00
2022-05-16 17:03:11 +02:00
2022-05-16 17:03:11 +02:00
2021-06-22 14:11:57 +02:00
2022-05-16 17:03:11 +02:00
2022-05-16 17:03:11 +02:00
2022-05-16 17:03:09 +02:00
2022-05-16 17:03:11 +02:00
2021-11-08 16:55:21 -08:00