summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-11-30 01:53:02 +0000
committerpeter <peter@FreeBSD.org>2000-11-30 01:53:02 +0000
commit673e30eadab9fe762d23631609edf13e018f59c1 (patch)
treee401f76c9e43e50db1807ea2992caafa1f9fa287
parentab556afac4eb918495bc4b404e76e04a38157212 (diff)
downloadFreeBSD-src-673e30eadab9fe762d23631609edf13e018f59c1.zip
FreeBSD-src-673e30eadab9fe762d23631609edf13e018f59c1.tar.gz
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.
-rw-r--r--sys/amd64/include/pmap.h2
-rw-r--r--sys/i386/include/pmap.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index e81e9fb..ab923fb 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
diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h
index e81e9fb..ab923fb 100644
--- a/sys/i386/include/pmap.h
+++ b/sys/i386/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
OpenPOWER on IntegriCloud