diff options
author | alc <alc@FreeBSD.org> | 2013-01-12 18:06:21 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2013-01-12 18:06:21 +0000 |
commit | 1628a850796f6854ed13188e29a65a5038298364 (patch) | |
tree | 916ccee50ffba6ee601f26feb1f4c539cf3bad13 /sys/mips/include | |
parent | 3a4ed3ce8afc0e886eb7bdcb3e9b38e095490a9c (diff) | |
download | FreeBSD-src-1628a850796f6854ed13188e29a65a5038298364.zip FreeBSD-src-1628a850796f6854ed13188e29a65a5038298364.tar.gz |
Define VM_KMEM_SIZE_MAX as a fraction of the kernel address space size
rather than a constant so that VM_KMEM_SIZE_MAX will scale automatically
with the kernel address space size. This is particularly important for
MIPS because the same definition is used by both 32- and 64-bit kernels.
Tested by: jchandra
Diffstat (limited to 'sys/mips/include')
-rw-r--r-- | sys/mips/include/vmparam.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/mips/include/vmparam.h b/sys/mips/include/vmparam.h index aa0a5d7..ef97336 100644 --- a/sys/mips/include/vmparam.h +++ b/sys/mips/include/vmparam.h @@ -130,10 +130,11 @@ #endif /* - * Ceiling on amount of kmem_map kva space. + * Ceiling on the amount of kmem_map KVA space: 40% of the entire KVA space. */ #ifndef VM_KMEM_SIZE_MAX -#define VM_KMEM_SIZE_MAX (200 * 1024 * 1024) +#define VM_KMEM_SIZE_MAX ((VM_MAX_KERNEL_ADDRESS - \ + VM_MIN_KERNEL_ADDRESS + 1) * 2 / 5) #endif /* initial pagein size of beginning of executable file */ |