]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix boot_pages calculation for machines that don't have UMA_MD_SMALL_ALLOC.
authorglebius <glebius@FreeBSD.org>
Tue, 6 Feb 2018 22:06:59 +0000 (22:06 +0000)
committerglebius <glebius@FreeBSD.org>
Tue, 6 Feb 2018 22:06:59 +0000 (22:06 +0000)
commit59ed8012f8a5042d332e5f1be456a76d3835505d
treeefa89c651821151ed217368205edadcdd620aa1c
parent365ef785043bd36581affaf5ff637743950e063f
Fix boot_pages calculation for machines that don't have UMA_MD_SMALL_ALLOC.

o Call uma_startup1() after initializing kmem, vmem and domains.
o Include 8 eight VM startup pages into uma_startup_count() calculation.
o Account for vmem_startup() and vm_map_startup() preallocating pages.
o Account for extra two allocations done by kmem_init() and vmem_create().
o Hardcode the place of execution of vm_radix_reserve_kva(). Using SYSINIT
  allowed several other SYSINITs to sneak in before it, thus bumping
  requirement for amount of boot pages.
sys/kern/subr_vmem.c
sys/vm/vm_init.c
sys/vm/vm_page.c
sys/vm/vm_radix.c