]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: activity: report the average loop time in "show activity"
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Nov 2018 07:42:42 +0000 (08:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Nov 2018 10:48:41 +0000 (11:48 +0100)
commitbaba82fe70424ef20cddd754741605bfef8721e2
treec3f58551a12788f3db0bdc25497204fb2fd95a13
parent609aad9e737f9ac9da7fc04167414ff1ec998f01
MINOR: activity: report the average loop time in "show activity"

Since we know the time it takes to process everything between two poll()
calls, we can use this as the max latency measurement any task will
experience and average it.

This code does this, and reports in "show activity" the average of this
loop time over the last 1024 poll() loops, for each thread. It will vary
quickly at high loads and slowly under low to moderate loads, depending
on the rate at which poll() is called. The latency a task experiences
is expected to be half of this on average.
include/proto/activity.h
include/types/activity.h
src/cli.c