Increase NKPT from 17 to 30. This fixes the 4GB ram boot panic on both
-current and RELENG_4 with GENERIC. NKPT is the number of initial bootstrap page table pages we create for the kernel during startup. Once VM is up, we resize it as needed, but with 4G ram, the size of the vm_page_t structures was pushing it over the limit. The fact that trimmed down kernels boot on 4G ram machines suggests that we were pretty close to the edge. The "30" is arbitary, but smaller than the 'nkpt' variable on all machines that I checked.
This commit is contained in:
parent
1bd0eefb4c
commit
083e9ed543
@ -88,7 +88,7 @@
|
||||
#define VADDR(pdi, pti) ((vm_offset_t)(((pdi)<<PDRSHIFT)|((pti)<<PAGE_SHIFT)))
|
||||
|
||||
#ifndef NKPT
|
||||
#define NKPT 17 /* actual number of kernel page tables */
|
||||
#define NKPT 30 /* actual number of kernel page tables */
|
||||
#endif
|
||||
#ifndef NKPDE
|
||||
#ifdef SMP
|
||||
|
@ -88,7 +88,7 @@
|
||||
#define VADDR(pdi, pti) ((vm_offset_t)(((pdi)<<PDRSHIFT)|((pti)<<PAGE_SHIFT)))
|
||||
|
||||
#ifndef NKPT
|
||||
#define NKPT 17 /* actual number of kernel page tables */
|
||||
#define NKPT 30 /* actual number of kernel page tables */
|
||||
#endif
|
||||
#ifndef NKPDE
|
||||
#ifdef SMP
|
||||
|
Loading…
Reference in New Issue
Block a user