From 160c73032db2e122f5e643090c86eed85e679eb4 Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Wed, 30 May 2018 15:24:05 +0300 Subject: [PATCH] os/bluestore: more verbose logging in new bitmap allocator Signed-off-by: Igor Fedotov --- src/os/bluestore/BitmapFastAllocator.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/os/bluestore/BitmapFastAllocator.cc b/src/os/bluestore/BitmapFastAllocator.cc index 9c5339d449016..3180ca00d35d5 100755 --- a/src/os/bluestore/BitmapFastAllocator.cc +++ b/src/os/bluestore/BitmapFastAllocator.cc @@ -24,6 +24,11 @@ int64_t BitmapFastAllocator::allocate( { uint64_t allocated = 0; + ldout(cct, 10) << __func__ << std::hex << "0x" << want_size + << "/" << alloc_unit << "," << max_alloc_size << "," << hint + << std::dec << dendl; + + _allocate_l2(want_size, alloc_unit, max_alloc_size, hint, &allocated, extents); if (!allocated) { @@ -46,6 +51,7 @@ void BitmapFastAllocator::release( << std::dec << dendl; } _free_l2(release_set); + ldout(cct, 10) << __func__ << " done" << dendl; } @@ -59,6 +65,7 @@ void BitmapFastAllocator::init_add_free(uint64_t offset, uint64_t length) uint64_t l = p2align(offset + length - offs, mas); _mark_free(offs, l); + ldout(cct, 10) << __func__ << " done" << dendl; } void BitmapFastAllocator::init_rm_free(uint64_t offset, uint64_t length) { @@ -68,6 +75,7 @@ void BitmapFastAllocator::init_rm_free(uint64_t offset, uint64_t length) uint64_t offs = round_up_to(offset, mas); uint64_t l = p2align(offset + length - offs, mas); _mark_allocated(offs, l); + ldout(cct, 10) << __func__ << " done" << dendl; } void BitmapFastAllocator::shutdown() -- 2.39.5