summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-01-03 00:26:04 +0000
committerpeter <peter@FreeBSD.org>2002-01-03 00:26:04 +0000
commit6634eb9e133bdb27edb446bd680927cab8e54fdd (patch)
treedde7377f099defd2d7072053c8e5cb24cdd5985b /sys/i386
parent3cb6f9217c7d74ac67ec00ccaaaaa382c8ee6e65 (diff)
downloadFreeBSD-src-6634eb9e133bdb27edb446bd680927cab8e54fdd.zip
FreeBSD-src-6634eb9e133bdb27edb446bd680927cab8e54fdd.tar.gz
Allow a specific setting for pv entries. This avoids the need to guess
(or calculate by hand) the effect of interactions between shpgperproc, physical ram size, maxproc, maxdsiz, etc.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/pmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index cdca6e4..baa71b2 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -509,6 +509,7 @@ pmap_init2()
TUNABLE_INT_FETCH("vm.pmap.shpgperproc", &shpgperproc);
pv_entry_max = shpgperproc * maxproc + vm_page_array_size;
+ TUNABLE_INT_FETCH("vm.pmap.pv_entries", &pv_entry_max);
pv_entry_high_water = 9 * (pv_entry_max / 10);
zinitna(pvzone, &pvzone_obj, NULL, 0, pv_entry_max, ZONE_INTERRUPT, 1);
}
OpenPOWER on IntegriCloud