]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: activity: report the current run queue size
authorWilly Tarreau <w@1wt.eu>
Thu, 31 Aug 2023 15:43:14 +0000 (17:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Sep 2023 06:26:06 +0000 (08:26 +0200)
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".

src/activity.c

index 1fafeab0bffd4daa61feb720cb171f0983f67fe5..d2c8d8fb410777b99b59916b62a267af2691f1f3 100644 (file)
@@ -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;