From 126ffe616562d1f37073e5940789abbe5d320917 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 26 Apr 2018 13:20:40 -0500 Subject: [PATCH] osd: log 'slow op' debug messages for individual slow ops Otherwise it is very hard to identify which OSD ops are slow when we've seen a SLOW_OPS health warning in a qa run. Notably, without this, bugs like http://tracker.ceph.com/issues/23769 are very challenging to track down. Signed-off-by: Sage Weil --- src/osd/OSD.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 1285c22dce1..b801b63c795 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -7011,6 +7011,9 @@ vector OSD::get_health_metrics() int slow = 0; auto count_slow_ops = [&](TrackedOp& op) { if (op.get_initiated() < too_old) { + lgeneric_subdout(cct,osd,20) << "slow op " << op.get_desc() + << " initiated " + << op.get_initiated() << dendl; slow++; return true; } else { -- 2.39.5