]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: activity: add a new "show tasks" command to list currently active tasks
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Jan 2021 10:32:55 +0000 (11:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Jan 2021 11:12:28 +0000 (12:12 +0100)
commit7eff06e162ba8f862c7aaa4a0770e109e52c864b
tree62ad87e7fa32350fb8b825deb287fddcf69cfdbb
parentcfa7101d594c75787cc9110266bb14b30d0efcc7
MINOR: activity: add a new "show tasks" command to list currently active tasks

This finally adds the long-awaited solution to inspect the run queues
and figure what is eating the CPU or causing latencies. We can even see
the experienced latencies when profiling is enabled. Example on a
saturated process:

> show tasks
Running tasks: 14983 (4 threads)
  function                     places     %    lat_tot   lat_avg
  process_stream                 4948   33.0   5.840m    70.82ms
  h1_io_cb                       2535   16.9      -         -
  main+0x9e670                   2508   16.7   2.930m    70.10ms
  ssl_sock_io_cb                 2499   16.6      -         -
  si_cs_io_cb                    2493   16.6      -         -
doc/management.txt
src/activity.c