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/amd64/include/pmap.h | |
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/amd64/include/pmap.h')
-rw-r--r-- | sys/amd64/include/pmap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index 15b91c9..3640e2f 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -97,8 +97,9 @@ ((unsigned long)(l2) << PDRSHIFT) | \ ((unsigned long)(l1) << PAGE_SHIFT)) +/* Initial number of kernel page tables */ #ifndef NKPT -#define NKPT 120 /* initial number of kernel page tables */ +#define NKPT 240 /* Enough for 16GB (2MB page tables) */ #endif #define NKPML4E 1 /* number of kernel PML4 slots */ |