git: e68465ecbf73 - stable/13 - uma: Show the count of free slabs in each per-domain keg's sysctl tree
Mark Johnston
markj at FreeBSD.org
Fri Sep 24 13:32:10 UTC 2021
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=e68465ecbf7371efdab5a7d91838e33f4e5e177b
commit e68465ecbf7371efdab5a7d91838e33f4e5e177b
Author: Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-09-17 16:13:47 +0000
Commit: Mark Johnston <markj at 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,
More information about the dev-commits-src-all
mailing list