]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: provide a rough estimate for bitmap allocator
authorIgor Fedotov <ifedotov@suse.com>
Fri, 15 Jun 2018 14:04:57 +0000 (17:04 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Sun, 17 Mar 2019 17:59:07 +0000 (20:59 +0300)
commitd08e2b798186d6d54d71c91dbfc14912fec445bf
tree8eb4a209642bf55226f8c64e14080624bba7fa8f
parent811857a9c8d03413adc2a939cb7ac6420c92432f
os/bluestore: provide a rough estimate for bitmap allocator
fragmentation.
The approach is counting 'partial' and 'free' slots at L1 on the fly and
use partial / (partial+free) value as rough fragmentation estimate.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit dbbe12fe6f543fc6942f41a108effc7eb1632f67)
src/os/bluestore/BitmapAllocator.h
src/os/bluestore/fastbmap_allocator_impl.cc
src/os/bluestore/fastbmap_allocator_impl.h
src/test/objectstore/Allocator_test.cc