Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2013 18:06:21 +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: r245337 - head/sys/mips/include
Message-ID:  <201301121806.r0CI6Ld1017923@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sat Jan 12 18:06:21 2013
New Revision: 245337
URL: http://svnweb.freebsd.org/changeset/base/245337

Log:
  Define VM_KMEM_SIZE_MAX as a fraction of the kernel address space size
  rather than a constant so that VM_KMEM_SIZE_MAX will scale automatically
  with the kernel address space size.  This is particularly important for
  MIPS because the same definition is used by both 32- and 64-bit kernels.
  
  Tested by:	jchandra

Modified:
  head/sys/mips/include/vmparam.h

Modified: head/sys/mips/include/vmparam.h
==============================================================================
--- head/sys/mips/include/vmparam.h	Sat Jan 12 16:23:16 2013	(r245336)
+++ head/sys/mips/include/vmparam.h	Sat Jan 12 18:06:21 2013	(r245337)
@@ -130,10 +130,11 @@
 #endif
 
 /*
- * Ceiling on amount of kmem_map kva space.
+ * Ceiling on the amount of kmem_map KVA space: 40% of the entire KVA space.
  */
 #ifndef VM_KMEM_SIZE_MAX
-#define	VM_KMEM_SIZE_MAX	(200 * 1024 * 1024)
+#define	VM_KMEM_SIZE_MAX	((VM_MAX_KERNEL_ADDRESS - \
+    VM_MIN_KERNEL_ADDRESS + 1) * 2 / 5)
 #endif
 
 /* initial pagein size of beginning of executable file */



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