Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Oct 2013 18:53:03 +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: r256068 - head/sys/kern
Message-ID:  <201310051853.r95Ir3OP073479@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sat Oct  5 18:53:03 2013
New Revision: 256068
URL: http://svnweb.freebsd.org/changeset/base/256068

Log:
  Tidy up kmeminit(): Since r245575, 'nmbclusters' is calculated after
  kmeminit() runs, so it contributes nothing to 'vm_kmem_size'; update a
  comment to reflect that r254025 replaced the kmem submap with the kmem
  arena.
  
  Reviewed by:	kib
  Approved by:	re (gjb)
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/kern/kern_malloc.c

Modified: head/sys/kern/kern_malloc.c
==============================================================================
--- head/sys/kern/kern_malloc.c	Sat Oct  5 18:41:27 2013	(r256067)
+++ head/sys/kern/kern_malloc.c	Sat Oct  5 18:53:03 2013	(r256068)
@@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/kernel.h>
 #include <sys/lock.h>
 #include <sys/malloc.h>
-#include <sys/mbuf.h>
 #include <sys/mutex.h>
 #include <sys/vmmeter.h>
 #include <sys/proc.h>
@@ -699,10 +698,10 @@ kmeminit(void)
 	 * VM_KMEM_SIZE_MAX is dependent on the maximum KVA space
 	 * available.
 	 *
-	 * Note that the kmem_map is also used by the zone allocator,
+	 * Note that the kmem arena is also used by the zone allocator,
 	 * so make sure that there is enough space.
 	 */
-	vm_kmem_size = VM_KMEM_SIZE + nmbclusters * PAGE_SIZE;
+	vm_kmem_size = VM_KMEM_SIZE;
 	mem_size = cnt.v_page_count;
 
 #if defined(VM_KMEM_SIZE_SCALE)



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