diff options
author | Marius Strobl <marius@FreeBSD.org> | 2010-12-21 21:32:17 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2010-12-21 21:32:17 +0000 |
commit | 3318c3ef4543d2fe4f5752590484bafc26550a78 (patch) | |
tree | 2f55691e6435a1b75df0df4eb4d3279041906c02 /sys/sparc64 | |
parent | 142d932b7959c18f73b847251b91aae96f402100 (diff) | |
download | src-3318c3ef4543d2fe4f5752590484bafc26550a78.tar.gz src-3318c3ef4543d2fe4f5752590484bafc26550a78.zip |
Revert r216080 so kmem_map is capped at 3/5 of the currently rather modest
kernel address space in order to leave space for the buffer cache, pipes,
thread stacks, etc on machines with more physical memory until we take
advantage of ASI_ATOMIC_QUAD_LDD_PHYS on CPUs providing it so we don't need
to lock the kernel TSB pages into the dTLB, basically making the entire
64-bit kernel address space available on relevant machines.
Submitted by: alc
Notes
Notes:
svn path=/head/; revision=216625
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/include/vmparam.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sparc64/include/vmparam.h b/sys/sparc64/include/vmparam.h index 1f97a839a638..26caab3cadad 100644 --- a/sys/sparc64/include/vmparam.h +++ b/sys/sparc64/include/vmparam.h @@ -240,7 +240,8 @@ * Ceiling on amount of kmem_map kva space. */ #ifndef VM_KMEM_SIZE_MAX -#define VM_KMEM_SIZE_MAX (VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS) +#define VM_KMEM_SIZE_MAX ((VM_MAX_KERNEL_ADDRESS - \ + VM_MIN_KERNEL_ADDRESS + 1) * 3 / 5) #endif /* |