]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: provide a rough estimate for bitmap allocator 22578/head
authorIgor Fedotov <ifedotov@suse.com>
Fri, 15 Jun 2018 14:04:57 +0000 (17:04 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Fri, 15 Jun 2018 14:04:57 +0000 (17:04 +0300)
commitdbbe12fe6f543fc6942f41a108effc7eb1632f67
treeb807d769f1fd7b5955d1c268644961483a4e8491
parent42ff13c776f8541de4e9fb749bb36cb3b4957c79
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>
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