svn commit: r204181 - head/sys/vm

Alan Cox alc at FreeBSD.org
Sun Feb 21 22:23:13 UTC 2010


Author: alc
Date: Sun Feb 21 22:23:13 2010
New Revision: 204181
URL: http://svn.freebsd.org/changeset/base/204181

Log:
  Align the start of the clean submap to a superpage boundary.  Although
  no superpage mappings are created within the clean submap, aligning the
  start of the clean submap helps to prevent interference with kmem_alloc()'s
  use of superpages.

Modified:
  head/sys/vm/vm_init.c

Modified: head/sys/vm/vm_init.c
==============================================================================
--- head/sys/vm/vm_init.c	Sun Feb 21 22:13:57 2010	(r204180)
+++ head/sys/vm/vm_init.c	Sun Feb 21 22:23:13 2010	(r204181)
@@ -186,7 +186,7 @@ again:
 		panic("startup: table size inconsistency");
 
 	clean_map = kmem_suballoc(kernel_map, &kmi->clean_sva, &kmi->clean_eva,
-	    (long)nbuf * BKVASIZE + (long)nswbuf * MAXPHYS, FALSE);
+	    (long)nbuf * BKVASIZE + (long)nswbuf * MAXPHYS, TRUE);
 	buffer_map = kmem_suballoc(clean_map, &kmi->buffer_sva,
 	    &kmi->buffer_eva, (long)nbuf * BKVASIZE, FALSE);
 	buffer_map->system_map = 1;


More information about the svn-src-all mailing list