From b8fae4f3ef84cc6c8e58756f56845600bd50d4f9 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 10 Jun 2004 04:30:59 +0000 Subject: [PATCH] MFamd64 Significantly reduce the number of preallocated pv entries in pmap_init(). Tested by: kensmith@ --- sys/alpha/alpha/pmap.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c index f038a2f12e3..afab1081e43 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.