Module Name:    src
Committed By:   jdc
Date:           Fri Mar  9 10:42:12 UTC 2012

Modified Files:
        src/sys/arch/sparc64/include: param.h

Log Message:
Restrict NKMEMPAGES to 2.5GB, otherwise we will run out of space in the
kernel_map on machines with 8GB (or more) main memory.

XXX: Moving KERNBASE/KERNEND is a better long term solution, but this allows
those machines to boot now.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/sparc64/include/param.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc64/include/param.h
diff -u src/sys/arch/sparc64/include/param.h:1.48 src/sys/arch/sparc64/include/param.h:1.49
--- src/sys/arch/sparc64/include/param.h:1.48	Sat Feb  4 17:56:16 2012
+++ src/sys/arch/sparc64/include/param.h	Fri Mar  9 10:42:12 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: param.h,v 1.48 2012/02/04 17:56:16 para Exp $ */
+/*	$NetBSD: param.h,v 1.49 2012/03/09 10:42:12 jdc Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -195,10 +195,12 @@ extern int nbpg, pgofset, pgshift;
 /*
  * Minimum size of the kernel kmem_arena in PAGE_SIZE-sized
  * logical pages.
- * No enforced maximum on sparc64.
+ * Maximum of 2.5GB on sparc64 (it must fit into KERNEND - KERNBASE, and also
+ * leave space in the kernel_map for other allocations).
  */
 #define	NKMEMPAGES_MIN_DEFAULT	((64 * 1024 * 1024) >> PAGE_SHIFT)
-#define	NKMEMPAGES_MAX_UNLIMITED 1
+#undef	NKMEMPAGES_MAX_UNLIMITED
+#define	NKMEMPAGES_MAX_DEFAULT	((2048L * 1024 * 1024) >> PAGE_SHIFT)
 
 #ifdef _KERNEL
 #ifndef _LOCORE

Reply via email to