MINOR: pools: report the amount used by thread caches in "show pools"
authorWilly Tarreau <w@1wt.eu>
Thu, 7 Oct 2021 14:29:31 +0000 (16:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 7 Oct 2021 15:30:06 +0000 (17:30 +0200)
commit1b4a714266898f3be88fa1fcba0db32a2cf0987a
treef8d1b4ce7cf3fc856dd684ca5fbc3329a3d07962
parent1a9b8a6122a43c375bbdc0f971edb002b2be9716
MINOR: pools: report the amount used by thread caches in "show pools"

The "show pools" command provides some "allocated" and "used" estimates
on the pools objects, but this applies to the shared pool and the "used"
includes what is currently assigned to thread-local caches. It's possible
to know how much each thread uses, so let's dump the total size allocated
by thread caches as an estimate. It's only done when pools are enabled,
which explains why the patch adds quite a lot of ifdefs.
src/pool.c