diff options
author | alc <alc@FreeBSD.org> | 2004-06-11 04:24:35 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-06-11 04:24:35 +0000 |
commit | e503e659296711ddcc9e1fa853b6febb1fdf583f (patch) | |
tree | 89a843301754be8feb0d4719a333b10c5ac7d863 /sys/ia64 | |
parent | e7bc2202da72b1779072cfe101cbbed29280a78c (diff) | |
download | FreeBSD-src-e503e659296711ddcc9e1fa853b6febb1fdf583f.zip FreeBSD-src-e503e659296711ddcc9e1fa853b6febb1fdf583f.tar.gz |
Reduce the number of preallocated pv entries and lpte entries in
pmap_init().
Tested by: marcel@
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/pmap.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index 93ce17f..8bf8bc8 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -129,7 +129,6 @@ MALLOC_DEFINE(M_PMAP, "PMAP", "PMAP Structures"); #endif #define MINPV 2048 /* Preallocate at least this many */ -#define MAXPV 20480 /* But no more than this */ #if 0 #define PMAP_DIAGNOSTIC @@ -500,7 +499,6 @@ void pmap_init(void) { int i; - int initial_pvs; /* * Allocate memory for random pmap data structures. Includes the @@ -518,18 +516,13 @@ pmap_init(void) /* * Init the pv free list and the PTE free list. */ - initial_pvs = vm_page_array_size; - if (initial_pvs < MINPV) - initial_pvs = MINPV; - if (initial_pvs > MAXPV) - initial_pvs = MAXPV; 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); ptezone = uma_zcreate("PT ENTRY", sizeof (struct ia64_lpte), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_VM|UMA_ZONE_NOFREE); - uma_prealloc(ptezone, initial_pvs); + uma_prealloc(ptezone, MINPV); /* * Now it is safe to enable pv_table recording. |