aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify
diff options
context:
space:
mode:
authorNaohiro Aota <[email protected]>2023-12-19 01:02:29 +0900
committerDavid Sterba <[email protected]>2024-01-12 01:59:43 +0100
commit02444f2ac26eae6385a65fcd66915084d15dffba (patch)
tree500d74c6e6b5df1fb7a3b726deb7fcbd3911c0b6 /lib/test_fortify
parentb271fee9a41ca1474d30639fd6cc912c9901d0f8 (diff)
btrfs: zoned: optimize hint byte for zoned allocator
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: 2eda57089ea3 ("btrfs: zoned: implement sequential extent allocation") CC: [email protected] # 5.15+ Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Naohiro Aota <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/test_fortify')
0 files changed, 0 insertions, 0 deletions