From: Sage Weil Date: Sat, 21 Mar 2015 21:39:54 +0000 (-0700) Subject: Merge pull request #3889 from XinzeChi/wip-tier-stat X-Git-Tag: v9.0.0~127 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6710aec8e2d1bf0df94749ce0dd7dceedc10c3d1;p=ceph.git Merge pull request #3889 from XinzeChi/wip-tier-stat osd: add l_osd_op_cache_hit perf counter for cache pool Reviewed-by: Sage Weil --- 6710aec8e2d1bf0df94749ce0dd7dceedc10c3d1 diff --cc src/osd/OSD.cc index 0fd3ec9eab4b,f91ac16f33b4..79b099b1a130 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@@ -2138,37 -2117,40 +2138,39 @@@ void OSD::create_logger( osd_plb.add_u64(l_osd_pg_stray, "numpg_stray", "Placement groups ready to be deleted from this osd"); // num stray pgs osd_plb.add_u64(l_osd_hb_to, "heartbeat_to_peers", "Heartbeat (ping) peers we send to"); // heartbeat peers we send to osd_plb.add_u64(l_osd_hb_from, "heartbeat_from_peers", "Heartbeat (ping) peers we recv from"); // heartbeat peers we recv from - osd_plb.add_u64_counter(l_osd_map, "map_messages"); // osdmap messages - osd_plb.add_u64_counter(l_osd_mape, "map_message_epochs"); // osdmap epochs - osd_plb.add_u64_counter(l_osd_mape_dup, "map_message_epoch_dups"); // dup osdmap epochs - osd_plb.add_u64_counter(l_osd_waiting_for_map, - "messages_delayed_for_map"); // dup osdmap epochs - - osd_plb.add_u64(l_osd_stat_bytes, "stat_bytes"); - osd_plb.add_u64(l_osd_stat_bytes_used, "stat_bytes_used"); - osd_plb.add_u64(l_osd_stat_bytes_avail, "stat_bytes_avail"); - - osd_plb.add_u64_counter(l_osd_copyfrom, "copyfrom"); - - osd_plb.add_u64_counter(l_osd_tier_promote, "tier_promote"); - osd_plb.add_u64_counter(l_osd_tier_flush, "tier_flush"); - osd_plb.add_u64_counter(l_osd_tier_flush_fail, "tier_flush_fail"); - osd_plb.add_u64_counter(l_osd_tier_try_flush, "tier_try_flush"); - osd_plb.add_u64_counter(l_osd_tier_try_flush_fail, "tier_try_flush_fail"); - osd_plb.add_u64_counter(l_osd_tier_evict, "tier_evict"); - osd_plb.add_u64_counter(l_osd_tier_whiteout, "tier_whiteout"); - osd_plb.add_u64_counter(l_osd_tier_dirty, "tier_dirty"); - osd_plb.add_u64_counter(l_osd_tier_clean, "tier_clean"); - osd_plb.add_u64_counter(l_osd_tier_delay, "tier_delay"); - osd_plb.add_u64_counter(l_osd_tier_proxy_read, "tier_proxy_read"); - - osd_plb.add_u64_counter(l_osd_agent_wake, "agent_wake"); - osd_plb.add_u64_counter(l_osd_agent_skip, "agent_skip"); - osd_plb.add_u64_counter(l_osd_agent_flush, "agent_flush"); - osd_plb.add_u64_counter(l_osd_agent_evict, "agent_evict"); - - osd_plb.add_u64_counter(l_osd_object_ctx_cache_hit, "object_ctx_cache_hit"); - osd_plb.add_u64_counter(l_osd_object_ctx_cache_total, "object_ctx_cache_total"); + osd_plb.add_u64_counter(l_osd_map, "map_messages", "OSD map messages"); // osdmap messages + osd_plb.add_u64_counter(l_osd_mape, "map_message_epochs", "OSD map epochs"); // osdmap epochs + osd_plb.add_u64_counter(l_osd_mape_dup, "map_message_epoch_dups", "OSD map duplicates"); // dup osdmap epochs + osd_plb.add_u64_counter(l_osd_waiting_for_map, "messages_delayed_for_map", "Operations waiting for OSD map"); // dup osdmap epochs + + osd_plb.add_u64(l_osd_stat_bytes, "stat_bytes", "OSD size"); + osd_plb.add_u64(l_osd_stat_bytes_used, "stat_bytes_used", "Used space"); + osd_plb.add_u64(l_osd_stat_bytes_avail, "stat_bytes_avail", "Available space"); + + osd_plb.add_u64_counter(l_osd_copyfrom, "copyfrom", "Rados \"copy-from\" operations"); + + osd_plb.add_u64_counter(l_osd_tier_promote, "tier_promote", "Tier promotions"); + osd_plb.add_u64_counter(l_osd_tier_flush, "tier_flush", "Tier flushes"); + osd_plb.add_u64_counter(l_osd_tier_flush_fail, "tier_flush_fail", "Failed tier flushes"); + osd_plb.add_u64_counter(l_osd_tier_try_flush, "tier_try_flush", "Tier flush attempts"); + osd_plb.add_u64_counter(l_osd_tier_try_flush_fail, "tier_try_flush_fail", "Failed tier flush attempts"); + osd_plb.add_u64_counter(l_osd_tier_evict, "tier_evict", "Tier evictions"); + osd_plb.add_u64_counter(l_osd_tier_whiteout, "tier_whiteout", "Tier whiteouts"); + osd_plb.add_u64_counter(l_osd_tier_dirty, "tier_dirty", "Dirty tier flag set"); + osd_plb.add_u64_counter(l_osd_tier_clean, "tier_clean", "Dirty tier flag cleaned"); + osd_plb.add_u64_counter(l_osd_tier_delay, "tier_delay", "Tier delays (agent waiting)"); + osd_plb.add_u64_counter(l_osd_tier_proxy_read, "tier_proxy_read", "Tier proxy reads"); + + osd_plb.add_u64_counter(l_osd_agent_wake, "agent_wake", "Tiering agent wake up"); + osd_plb.add_u64_counter(l_osd_agent_skip, "agent_skip", "Objects skipped by agent"); + osd_plb.add_u64_counter(l_osd_agent_flush, "agent_flush", "Tiering agent flushes"); + osd_plb.add_u64_counter(l_osd_agent_evict, "agent_evict", "Tiering agent evictions"); + + osd_plb.add_u64_counter(l_osd_object_ctx_cache_hit, "object_ctx_cache_hit", "Object context cache hits"); + osd_plb.add_u64_counter(l_osd_object_ctx_cache_total, "object_ctx_cache_total", "Object context cache lookups"); + osd_plb.add_u64_counter(l_osd_op_cache_hit, "op_cache_hit"); + logger = osd_plb.create_perf_counters(); cct->get_perfcounters_collection()->add(logger); }