btrfs: zoned: fix bandwidth degradaton
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs: zoned: split out prepare_allocation_zoned()fs/ | +19 | 0 replies | |
| 2/2 | btrfs: zoned: optimize hint byte for zoned allocatorfs/ | +18 | 0 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.
| Patch | Johannes Thumshirn |
|---|---|
| Series | R-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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