Date: Fri, 24 Sep 2021 13:32:09 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e68465ecbf73 - stable/13 - uma: Show the count of free slabs in each per-domain keg's sysctl tree Message-ID: <202109241332.18ODW9eX087005@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e68465ecbf7371efdab5a7d91838e33f4e5e177b commit e68465ecbf7371efdab5a7d91838e33f4e5e177b Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-09-17 16:13:47 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-09-24 13:01:22 +0000 uma: Show the count of free slabs in each per-domain keg's sysctl tree This is useful for measuring the number of pages that could be freed from a NOFREE zone under memory pressure. Sponsored by: The FreeBSD Foundation (cherry picked from commit d6e77cda9be1509ea170142cca3ff0d3b9f12e35) --- sys/vm/uma_core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 410d5bb6772b..5dfcd0c860e9 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -2526,7 +2526,10 @@ zone_alloc_sysctl(uma_zone_t zone, void *unused) "Total pages currently allocated from VM"); SYSCTL_ADD_U32(NULL, SYSCTL_CHILDREN(oid), OID_AUTO, "free_items", CTLFLAG_RD, &dom->ud_free_items, 0, - "items free in the slab layer"); + "Items free in the slab layer"); + SYSCTL_ADD_U32(NULL, SYSCTL_CHILDREN(oid), OID_AUTO, + "free_slabs", CTLFLAG_RD, &dom->ud_free_slabs, 0, + "Unused slabs"); } } else SYSCTL_ADD_CONST_STRING(NULL, SYSCTL_CHILDREN(oid), OID_AUTO,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109241332.18ODW9eX087005>