From 3121892e3ef140c380e85e36b98e0d3f65499381 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 2 Dec 2016 11:01:08 -0500 Subject: [PATCH] os/bluestore: dump allocator state at lowest debug level Signed-off-by: Sage Weil --- src/os/bluestore/BitMapAllocator.cc | 8 ++++---- src/os/bluestore/StupidAllocator.cc | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/os/bluestore/BitMapAllocator.cc b/src/os/bluestore/BitMapAllocator.cc index 4011d01654c..7992c8f30d4 100644 --- a/src/os/bluestore/BitMapAllocator.cc +++ b/src/os/bluestore/BitMapAllocator.cc @@ -255,24 +255,24 @@ uint64_t BitMapAllocator::get_free() void BitMapAllocator::dump() { std::lock_guard l(m_lock); - dout(30) << __func__ << " instance " << (uint64_t) this + dout(0) << __func__ << " instance " << (uint64_t) this << " committing: " << m_committing.num_intervals() << " extents" << dendl; for (auto p = m_committing.begin(); p != m_committing.end(); ++p) { - dout(30) << __func__ << " instance " << (uint64_t) this + dout(0) << __func__ << " instance " << (uint64_t) this << " 0x" << std::hex << p.get_start() << "~" << p.get_len() << std::dec << dendl; } - dout(30) << __func__ << " instance " << (uint64_t) this + dout(0) << __func__ << " instance " << (uint64_t) this << " uncommitted: " << m_uncommitted.num_intervals() << " extents" << dendl; for (auto p = m_uncommitted.begin(); p != m_uncommitted.end(); ++p) { - dout(30) << __func__ << " 0x" << std::hex << p.get_start() + dout(0) << __func__ << " 0x" << std::hex << p.get_start() << "~" << p.get_len() << std::dec << dendl; } diff --git a/src/os/bluestore/StupidAllocator.cc b/src/os/bluestore/StupidAllocator.cc index fe57e17fa05..82aeb216885 100644 --- a/src/os/bluestore/StupidAllocator.cc +++ b/src/os/bluestore/StupidAllocator.cc @@ -265,30 +265,30 @@ void StupidAllocator::dump() { std::lock_guard l(lock); for (unsigned bin = 0; bin < free.size(); ++bin) { - dout(30) << __func__ << " free bin " << bin << ": " - << free[bin].num_intervals() << " extents" << dendl; + dout(0) << __func__ << " free bin " << bin << ": " + << free[bin].num_intervals() << " extents" << dendl; for (auto p = free[bin].begin(); p != free[bin].end(); ++p) { - dout(30) << __func__ << " 0x" << std::hex << p.get_start() << "~" - << p.get_len() << std::dec << dendl; + dout(0) << __func__ << " 0x" << std::hex << p.get_start() << "~" + << p.get_len() << std::dec << dendl; } } - dout(30) << __func__ << " committing: " - << committing.num_intervals() << " extents" << dendl; + dout(0) << __func__ << " committing: " + << committing.num_intervals() << " extents" << dendl; for (auto p = committing.begin(); p != committing.end(); ++p) { - dout(30) << __func__ << " 0x" << std::hex << p.get_start() << "~" - << p.get_len() << std::dec << dendl; + dout(0) << __func__ << " 0x" << std::hex << p.get_start() << "~" + << p.get_len() << std::dec << dendl; } - dout(30) << __func__ << " uncommitted: " - << uncommitted.num_intervals() << " extents" << dendl; + dout(0) << __func__ << " uncommitted: " + << uncommitted.num_intervals() << " extents" << dendl; for (auto p = uncommitted.begin(); p != uncommitted.end(); ++p) { - dout(30) << __func__ << " 0x" << std::hex << p.get_start() << "~" - << p.get_len() << std::dec << dendl; + dout(0) << __func__ << " 0x" << std::hex << p.get_start() << "~" + << p.get_len() << std::dec << dendl; } } -- 2.47.3