]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: more verbose logging in new bitmap allocator
authorIgor Fedotov <ifedotov@suse.com>
Wed, 30 May 2018 12:24:05 +0000 (15:24 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Sun, 17 Mar 2019 17:59:07 +0000 (20:59 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 160c73032db2e122f5e643090c86eed85e679eb4)

src/os/bluestore/BitmapFastAllocator.cc

index 9c5339d4490164e837c896c9c34e23670808e9c2..3180ca00d35d548afeada962c693396e340896e9 100755 (executable)
@@ -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()