From: Willy Tarreau Date: Thu, 31 Aug 2023 15:43:14 +0000 (+0200) Subject: MINOR: activity: report the current run queue size X-Git-Tag: v2.9-dev5~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=338431ecb66ff78ea96c1304d6674a742590fc47;p=thirdparty%2Fhaproxy.git MINOR: activity: report the current run queue size While troubleshooting the causes of load spikes, it appeared that the length of individual run queues was missing, let's add it to "show activity". --- diff --git a/src/activity.c b/src/activity.c index 1fafeab0bf..d2c8d8fb41 100644 --- a/src/activity.c +++ b/src/activity.c @@ -1119,6 +1119,7 @@ static int cli_io_handler_show_activity(struct appctx *appctx) case __LINE__: SHOW_VAL("tasksw:", activity[thr].tasksw, _tot); break; case __LINE__: SHOW_VAL("empty_rq:", activity[thr].empty_rq, _tot); break; case __LINE__: SHOW_VAL("long_rq:", activity[thr].long_rq, _tot); break; + case __LINE__: SHOW_VAL("curr_rq:", _HA_ATOMIC_LOAD(&ha_thread_ctx[thr].rq_total), _tot); break; case __LINE__: SHOW_VAL("loops:", activity[thr].loops, _tot); break; case __LINE__: SHOW_VAL("wake_tasks:", activity[thr].wake_tasks, _tot); break; case __LINE__: SHOW_VAL("wake_signal:", activity[thr].wake_signal, _tot); break;