summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-06-10 04:30:59 +0000
committeralc <alc@FreeBSD.org>2004-06-10 04:30:59 +0000
commitfe56c5bdd9a68195f81addc0c76aec6f142d1da0 (patch)
treefe3097633bc9ac8ecf29d62d245334f6928b77bb /sys
parent3c14651a47e9eda900d09f983be6a3c4099e88c6 (diff)
downloadFreeBSD-src-fe56c5bdd9a68195f81addc0c76aec6f142d1da0.zip
FreeBSD-src-fe56c5bdd9a68195f81addc0c76aec6f142d1da0.tar.gz
MFamd64
Significantly reduce the number of preallocated pv entries in pmap_init(). Tested by: kensmith@
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/pmap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c
index f038a2f..afab108 100644
--- a/sys/alpha/alpha/pmap.c
+++ b/sys/alpha/alpha/pmap.c
@@ -612,7 +612,6 @@ void
pmap_init(void)
{
int i;
- int initial_pvs;
/*
* Allocate memory for random pmap data structures. Includes the
@@ -630,12 +629,9 @@ pmap_init(void)
/*
* init the pv free list
*/
- initial_pvs = vm_page_array_size;
- if (initial_pvs < MINPV)
- initial_pvs = MINPV;
pvzone = uma_zcreate("PV ENTRY", sizeof (struct pv_entry), NULL, NULL,
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_VM | UMA_ZONE_NOFREE);
- uma_prealloc(pvzone, initial_pvs);
+ uma_prealloc(pvzone, MINPV);
/*
* Now it is safe to enable pv_table recording.
OpenPOWER on IntegriCloud