aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-11-30 01:53:02 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-11-30 01:53:02 +0000
commit083e9ed543e19ff1706dc609b11ff50ca92f1028 (patch)
tree214c7b1ae251128332fa66f7c28b9bcaf5e198c9 /sys/amd64
parent1bd0eefb4c897beb760afccf03ec7e65f558fa89 (diff)
downloadsrc-083e9ed543e19ff1706dc609b11ff50ca92f1028.tar.gz
src-083e9ed543e19ff1706dc609b11ff50ca92f1028.zip
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.
Notes
Notes: svn path=/head/; revision=69377
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/include/pmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index e81e9fbe3cd3..ab923fb320a1 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -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