svn commit: r216625 - head/sys/sparc64/include
Marius Strobl
marius at FreeBSD.org
Tue Dec 21 21:32:17 UTC 2010
Author: marius
Date: Tue Dec 21 21:32:17 2010
New Revision: 216625
URL: http://svn.freebsd.org/changeset/base/216625
Log:
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
Modified:
head/sys/sparc64/include/vmparam.h
Modified: head/sys/sparc64/include/vmparam.h
==============================================================================
--- head/sys/sparc64/include/vmparam.h Tue Dec 21 21:29:02 2010 (r216624)
+++ head/sys/sparc64/include/vmparam.h Tue Dec 21 21:32:17 2010 (r216625)
@@ -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
/*
More information about the svn-src-all
mailing list