Files
twx-linux/fs
Naohiro Aota f91c77d2c3 btrfs: zoned: optimize hint byte for zoned allocator
[ Upstream commit 02444f2ac2 ]

Writing sequentially to a huge file on btrfs on a SMR HDD revealed a
decline of the performance (220 MiB/s to 30 MiB/s after 500 minutes).

The performance goes down because of increased latency of the extent
allocation, which is induced by a traversing of a lot of full block groups.

So, this patch optimizes the ffe_ctl->hint_byte by choosing a block group
with sufficient size from the active block group list, which does not
contain full block groups.

After applying the patch, the performance is maintained well.

Fixes: 2eda57089e ("btrfs: zoned: implement sequential extent allocation")
CC: stable@vger.kernel.org # 5.15+
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-31 16:17:10 -08:00
..
2023-09-13 09:43:05 +02:00
2023-02-22 12:59:46 +01:00
2023-09-23 11:11:10 +02:00
2023-08-30 16:11:10 +02:00
2023-01-04 11:29:01 +01:00