From: Kefu Chai Date: Wed, 2 Jun 2021 07:57:04 +0000 (+0800) Subject: os/bluestore/AvlAllocator: introduce bluestore_avl_alloc_ff_max_search_count X-Git-Tag: v16.2.8~302^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e72d85e760c42cac103e544ba7d8ef6581b93ce7;p=ceph.git os/bluestore/AvlAllocator: introduce bluestore_avl_alloc_ff_max_search_count 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 40f05b971f5a8064cf9819f80fc3bbf21d5206da) 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 2f28123ba5bb..dae13286618f 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4919,6 +4919,10 @@ std::vector