From f7b69dd9868ea30ef64f42b33a5f6c9966338b56 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Thu, 26 Sep 2019 01:50:26 +0000 Subject: [PATCH] amd64: Expose vm.pmap.large_map_pml4_entries as a sysctl node It's nice to have sysctl nodes for tunables. Sponsored by: Dell EMC Isilon --- sys/amd64/amd64/pmap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 1424dee34f5e..e7f875c325d1 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -1965,6 +1965,11 @@ pmap_init(void) } } +SYSCTL_UINT(_vm_pmap, OID_AUTO, large_map_pml4_entries, + CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &lm_ents, 0, + "Maximum number of PML4 entries for use by large map (tunable). " + "Each entry corresponds to 512GB of address space."); + static SYSCTL_NODE(_vm_pmap, OID_AUTO, pde, CTLFLAG_RD, 0, "2MB page mapping counters");