Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/include Restrict NKMEMPAGES to 2.5GB, other...



details:   https://anonhg.NetBSD.org/src/rev/26e504dea023
branches:  trunk
changeset: 777916:26e504dea023
user:      jdc <jdc%NetBSD.org@localhost>
date:      Fri Mar 09 10:42:12 2012 +0000

description:
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.

diffstat:

 sys/arch/sparc64/include/param.h |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r f75d88baa587 -r 26e504dea023 sys/arch/sparc64/include/param.h
--- a/sys/arch/sparc64/include/param.h  Fri Mar 09 08:03:53 2012 +0000
+++ b/sys/arch/sparc64/include/param.h  Fri Mar 09 10:42:12 2012 +0000
@@ -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 @@
 /*
  * 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



Home | Main Index | Thread Index | Old Index