From: Yuri Weinstein Date: Mon, 8 Aug 2016 23:25:07 +0000 (-0700) Subject: Merge pull request #10526 from xiexingguo/xxg-wip-misc-2016-07-30 X-Git-Tag: ses5-milestone5~179 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aa5ef1dc1ad2c1b73c596de1a35b2314c901334a;p=ceph.git Merge pull request #10526 from xiexingguo/xxg-wip-misc-2016-07-30 osd: minor performance improvements and fixes Reviewed-by: Samuel Just --- aa5ef1dc1ad2c1b73c596de1a35b2314c901334a diff --cc src/osd/OSD.cc index c37f80d4697a,9dc02d41dd9e..6b0782621ffe --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@@ -4292,14 -4300,12 +4292,8 @@@ void OSD::tick( assert(osd_lock.is_locked()); dout(10) << "tick" << dendl; - logger->set(l_osd_buf, buffer::get_total_alloc()); - logger->set(l_osd_history_alloc_bytes, SHIFT_ROUND_UP(buffer::get_history_alloc_bytes(), 20)); - logger->set(l_osd_history_alloc_num, buffer::get_history_alloc_num()); - logger->set(l_osd_cached_crc, buffer::get_cached_crc()); - logger->set(l_osd_cached_crc_adjusted, buffer::get_cached_crc_adjusted()); - if (is_active() || is_waiting_for_healthy()) { maybe_update_heartbeat_peers(); - - heartbeat_lock.Lock(); - heartbeat_check(); - heartbeat_lock.Unlock(); } if (is_waiting_for_healthy()) {