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. MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
7fabaac221
commit
d6e77cda9b
@ -2690,7 +2690,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,
|
||||
|
Loading…
Reference in New Issue
Block a user