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: v15.2.16~75^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=19c36e2024c00bed4720dd56af49940484db42c6;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 97175f8eb7886..e4fd613f7c22a 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4716,6 +4716,10 @@ std::vector