Skip to content

Commit

Permalink
amd64: Expose vm.pmap.large_map_pml4_entries as a sysctl node
Browse files Browse the repository at this point in the history
It's nice to have sysctl nodes for tunables.

Sponsored by:	Dell EMC Isilon
  • Loading branch information
cemeyer committed Sep 26, 2019
1 parent 953cb1d commit 078ae93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sys/amd64/amd64/pmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 078ae93

Please sign in to comment.