From: Kefu Chai Date: Tue, 1 Jun 2021 11:14:33 +0000 (+0800) Subject: os/bluestore/AvlAllocator: introduce bluestore_avl_alloc_ff_max_search_bytes X-Git-Tag: v16.2.8~302^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=793e5ade8c92d5d8b9327c100c647619f02a04c4;p=ceph.git os/bluestore/AvlAllocator: introduce bluestore_avl_alloc_ff_max_search_bytes so AvlAllocator can switch from the first-first mode to best-fit mode without walking through the whole space map tree. in the highly-fragmented system, iterating the whole tree could hurt the performance of fast storage system a lot. the idea comes from openzfs's metaslab allocator. Signed-off-by: Kefu Chai (cherry picked from commit 5a26875049d13130ffe5954428da0e1b9750359f) Signed-off-by: Mauricio Faria de Oliveira Conflicts: src/common/options/global.yaml.in: - Moved new option into src/common/options.cc --- diff --git a/src/common/options.cc b/src/common/options.cc index dae13286618f..6a2115e15a0a 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4923,6 +4923,10 @@ std::vector