Skip to content

btrfs: zoned: fix bandwidth degradaton

Naohiro Aota linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: zoned: split out prepare_allocation_zoned()fs/btrfs/extent-tree.c+19 -130 replies
2/2btrfs: zoned: optimize hint byte for zoned allocatorfs/btrfs/extent-tree.c+18 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJohannes Thumshirn
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs: zoned: fix bandwidth degradaton

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). As shown in the attached plot, current btrfs exponentially drops its performance.

The drop is because find_free_extent() need to traverse a lot of full block groups, trying to find a space.

This series fixes the performance drop by choosing a proper block group from the zone_active_bgs. Since the list does not contain full block groups, there is no need of traversing the full BGs.

Naohiro Aota (2):
btrfs: zoned: split out prepare_allocation_zoned()
btrfs: zoned: optimize hint byte for zoned allocator

 fs/btrfs/extent-tree.c | 50 +++++++++++++++++++++++++++++++-----------
 1 file changed, 37 insertions(+), 13 deletions(-)
Signature · 1 line
2.43.0