usr/src/uts/sun4v/os/mach_startup.c
changeset 11713 03615b084875
parent 10106 b235491976d3
child 12149 607008ac563e
--- a/usr/src/uts/sun4v/os/mach_startup.c	Fri Feb 19 10:41:19 2010 -0700
+++ b/usr/src/uts/sun4v/os/mach_startup.c	Fri Feb 19 10:18:21 2010 -0800
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -527,3 +527,15 @@
 	/* virtual console concentrator */
 	(void) i_ddi_attach_hw_nodes("vcc");
 }
+
+void
+set_platform_defaults(void)
+{
+	/*
+	 * Allow at most one context domain per 8 CPUs, which is ample for
+	 * good performance.  Do not make this too large, because it
+	 * increases the space consumed in the per-process sfmmu structure.
+	 */
+	if (max_mmu_ctxdoms == 0)
+		max_mmu_ctxdoms = (NCPU + 7) / 8;
+}