mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 01:07:21 +01:00
MFamd64
Significantly reduce the number of preallocated pv entries in pmap_init(). Tested by: kensmith@
This commit is contained in:
parent
f2b2cfdac0
commit
b8fae4f3ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130292
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user