From: Sridhar Seshasayee Date: Tue, 22 Jul 2025 08:08:16 +0000 (+0530) Subject: osd/scheduler/mClockScheduler: Log the size of high priority queues. X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=89c7b217efec511be1cc5892bc181ae499bedaef;p=ceph.git osd/scheduler/mClockScheduler: Log the size of high priority queues. Signed-off-by: Sridhar Seshasayee --- diff --git a/src/osd/scheduler/mClockScheduler.cc b/src/osd/scheduler/mClockScheduler.cc index bd81b6c19a1..8be0a01b6ef 100644 --- a/src/osd/scheduler/mClockScheduler.cc +++ b/src/osd/scheduler/mClockScheduler.cc @@ -99,11 +99,19 @@ void mClockScheduler::enqueue(OpSchedulerItem&& item) mclock_conf.get_mclock_counter(id); } - dout(20) << __func__ << " client_count: " << scheduler.client_count() - << " queue_sizes: [ " - << " high_priority_queue: " << high_priority.size() - << " sched: " << scheduler.request_count() << " ]" - << dendl; + dout(20) << __func__ << ": sched client_count: " << scheduler.client_count() + << " sched queue size: " << scheduler.request_count() + << dendl; + + auto fmt_prio = [this](priority_t p) -> std::string { + return (p == immediate_class_priority) ? "MAX" : std::to_string(p); + }; + + dout(20) << __func__ << " high_priority queues: " << high_priority.size(); + for (const auto& [prio, queue] : high_priority) { + *_dout << ", priority " << fmt_prio(prio) << ": " << queue.size(); + } + *_dout << dendl; dout(30) << __func__ << " mClockClients: " << scheduler << dendl;