]> git-server-git.apps.pok.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:55:31 +0000 (20:55 +0300)
commit9f8c91c3aef6ec7cdbe4644e8510cfcce9695b43
tree8ccc7479b46ab8108fa5ee925d93c20a9a69224a
parent71f28677dcdd602ece064d34a9c2f6fea062d3e1
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