summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-09-21 20:58:25 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-09-21 20:58:25 +0000
commit11ab7938f44b7fe2122946c683cfb8845448d61a (patch)
treeaf1250152fa373a7cf0b86b47e7398fb8c2b8026
parentc8456c0f90469bbf521ebc31f1b89e3e1253e624 (diff)
Reduce NKMEMPAGES_MAX_DEFAULT_SUN4M, or we may allocate too much of kernel_map
on large memory sun4m machines.
-rw-r--r--sys/arch/sparc/include/param.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h
index 5987f2050c6..837cfbdc70e 100644
--- a/sys/arch/sparc/include/param.h
+++ b/sys/arch/sparc/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.31 2005/09/12 23:05:05 miod Exp $ */
+/* $OpenBSD: param.h,v 1.32 2005/09/21 20:58:24 miod Exp $ */
/* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */
/*
@@ -111,7 +111,7 @@
*/
#define NKMEMPAGES_MIN_DEFAULT ((4 * 1024 * 1024) >> PAGE_SHIFT)
#define NKMEMPAGES_MAX_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT_SUN4M ((64 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT_SUN4M ((24 * 1024 * 1024) >> PAGE_SHIFT)
/* pages ("clicks") to disk blocks */
#define ctod(x) ((x) << (PGSHIFT - DEV_BSHIFT))