]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: activity: report the number of times poll() reports I/O
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jun 2020 18:25:18 +0000 (20:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Jun 2020 18:25:18 +0000 (20:25 +0200)
commite545153c50b92d659e15ddabca697084c848a6ba
treed2aa1bba9c9bd85ea22f502e4f14c943f8ed65fa
parentc208a54ab2aede84402d38758f855789b1a836d1
MINOR: activity: report the number of times poll() reports I/O

The "show activity" output mentions a number of indicators to explain
wake up reasons but doesn't have the number of times poll() sees some
I/O. And given that multiple events can happen simultaneously, it's
not always possible to deduce this metric by subtracting.

This patch adds a new "poll_io" counter that allows one to see how
often poll() returns with at least one active FD. This should help
detect stuck events and measure various ratios of poll sub-metrics.
include/haproxy/activity-t.h
src/cli.c
src/ev_epoll.c
src/ev_evports.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c