All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: zoned: fix bandwidth degradaton
@ 2023-12-18 16:01 Naohiro Aota
  2023-12-18 16:02 ` [PATCH 1/2] btrfs: zoned: split out prepare_allocation_zoned() Naohiro Aota
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Naohiro Aota @ 2023-12-18 16:01 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 812 bytes --]

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(-)

-- 
2.43.0


[-- Attachment #2: btrfs-perf.png --]
[-- Type: image/png, Size: 38633 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-04 15:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-18 16:01 [PATCH 0/2] btrfs: zoned: fix bandwidth degradaton Naohiro Aota
2023-12-18 16:02 ` [PATCH 1/2] btrfs: zoned: split out prepare_allocation_zoned() Naohiro Aota
2023-12-18 16:02 ` [PATCH 2/2] btrfs: zoned: optimize hint byte for zoned allocator Naohiro Aota
2023-12-18 16:21 ` [PATCH 0/2] btrfs: zoned: fix bandwidth degradaton Johannes Thumshirn
2024-01-04 15:45 ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.