Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Feb 2010 22:23:13 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r204181 - head/sys/vm
Message-ID:  <201002212223.o1LMNDkJ055472@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002212223.o1LMNDkJ055472>