svn commit: r223378 - head/sys/sparc64/include

Marius Strobl marius at FreeBSD.org
Tue Jun 21 20:48:14 UTC 2011


Author: marius
Date: Tue Jun 21 20:48:14 2011
New Revision: 223378
URL: http://svn.freebsd.org/changeset/base/223378

Log:
  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:
  head/sys/sparc64/include/tsb.h
  head/sys/sparc64/include/vmparam.h

Modified: head/sys/sparc64/include/tsb.h
==============================================================================
--- head/sys/sparc64/include/tsb.h	Tue Jun 21 20:47:03 2011	(r223377)
+++ head/sys/sparc64/include/tsb.h	Tue Jun 21 20:48:14 2011	(r223378)
@@ -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: head/sys/sparc64/include/vmparam.h
==============================================================================
--- head/sys/sparc64/include/vmparam.h	Tue Jun 21 20:47:03 2011	(r223377)
+++ head/sys/sparc64/include/vmparam.h	Tue Jun 21 20:48:14 2011	(r223378)
@@ -218,7 +218,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
 
 /*
@@ -238,6 +238,7 @@
 
 #define	UMA_MD_SMALL_ALLOC
 
+extern u_int tsb_kernel_ldd_phys;
 extern vm_offset_t vm_max_kernel_address;
 
 /*


More information about the svn-src-head mailing list