svn commit: r224363 - stable/8/sys/sparc64/include
Marius Strobl
marius at FreeBSD.org
Mon Jul 25 18:28:12 UTC 2011
Author: marius
Date: Mon Jul 25 18:28:12 2011
New Revision: 224363
URL: http://svn.freebsd.org/changeset/base/224363
Log:
MFC: r223378
On machines where we don't need to lock the kernel TSB into the dTLB and
thus may basically use the entire 64-bit kernel address space reduce
VM_KMEM_SIZE_SCALE to 1 allowing kernel to use more memory.
Modified:
stable/8/sys/sparc64/include/tsb.h
stable/8/sys/sparc64/include/vmparam.h
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/geom/label/ (props changed)
Modified: stable/8/sys/sparc64/include/tsb.h
==============================================================================
--- stable/8/sys/sparc64/include/tsb.h Mon Jul 25 18:26:54 2011 (r224362)
+++ stable/8/sys/sparc64/include/tsb.h Mon Jul 25 18:28:12 2011 (r224363)
@@ -50,7 +50,6 @@ extern struct tte *tsb_kernel;
extern vm_size_t tsb_kernel_mask;
extern vm_size_t tsb_kernel_size;
extern vm_paddr_t tsb_kernel_phys;
-extern u_int tsb_kernel_ldd_phys;
static __inline struct tte *
tsb_vpntobucket(pmap_t pm, vm_offset_t vpn)
Modified: stable/8/sys/sparc64/include/vmparam.h
==============================================================================
--- stable/8/sys/sparc64/include/vmparam.h Mon Jul 25 18:26:54 2011 (r224362)
+++ stable/8/sys/sparc64/include/vmparam.h Mon Jul 25 18:28:12 2011 (r224363)
@@ -222,7 +222,7 @@
* is the total KVA space allocated for kmem_map.
*/
#ifndef VM_KMEM_SIZE_SCALE
-#define VM_KMEM_SIZE_SCALE (3)
+#define VM_KMEM_SIZE_SCALE (tsb_kernel_ldd_phys == 0 ? 3 : 1)
#endif
/*
@@ -242,6 +242,7 @@
#define UMA_MD_SMALL_ALLOC
+extern u_int tsb_kernel_ldd_phys;
extern vm_offset_t vm_max_kernel_address;
#endif /* !_MACHINE_VMPARAM_H_ */
More information about the svn-src-stable-8
mailing list