From: Sage Weil Date: Fri, 2 Dec 2016 16:01:08 +0000 (-0500) Subject: os/bluestore: dump allocator state at lowest debug level X-Git-Tag: v11.1.0~74^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3121892e3ef140c380e85e36b98e0d3f65499381;p=ceph.git os/bluestore: dump allocator state at lowest debug level Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BitMapAllocator.cc b/src/os/bluestore/BitMapAllocator.cc index 4011d01654c4..7992c8f30d4f 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 fe57e17fa056..82aeb2168854 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; } }