diff options
author | scottl <scottl@FreeBSD.org> | 2004-09-11 01:31:26 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2004-09-11 01:31:26 +0000 |
commit | 136dd28a2e31cb12983cb49e4360be09330cfc86 (patch) | |
tree | 8fab6ea9b0f0a758bc3086fc7b316418d564d48a /sys/i386/include | |
parent | 0b9d78e27550c669ee1e17ffdc762b42418cbfd6 (diff) | |
download | FreeBSD-src-136dd28a2e31cb12983cb49e4360be09330cfc86.zip FreeBSD-src-136dd28a2e31cb12983cb49e4360be09330cfc86.tar.gz |
Double the number of kernel page tables for amd64 and for i386/PAE. The old
value was only enough for 8GB of RAM, the new value can do 16GB. This still
isn't optimal since it doesn't scale. Fixing this for amd64 looks to be
fairly easy, but for i386 will be quite difficult.
Reviewed by: peter
Diffstat (limited to 'sys/i386/include')
-rw-r--r-- | sys/i386/include/pmap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h index 2378aa7..826c460 100644 --- a/sys/i386/include/pmap.h +++ b/sys/i386/include/pmap.h @@ -96,11 +96,12 @@ */ #define VADDR(pdi, pti) ((vm_offset_t)(((pdi)<<PDRSHIFT)|((pti)<<PAGE_SHIFT))) +/* Actual number of kernel page tables */ #ifndef NKPT #ifdef PAE -#define NKPT 120 /* actual number of kernel page tables */ +#define NKPT 240 /* Enough for 16GB (2MB page tables) */ #else -#define NKPT 30 /* actual number of kernel page tables */ +#define NKPT 30 /* Enough for 4GB (4MB page tables) */ #endif #endif #ifndef NKPDE |