summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc/include/param.h
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2005-09-12 23:05:03 +0000
committermiod <miod@openbsd.org>2005-09-12 23:05:03 +0000
commit7e3cd69d2800d4a528a868db70a28f90a9b034df (patch)
tree7ea79cda6f0ddee841dde356a4820abdc15538f9 /sys/arch/sparc/include/param.h
parentDo not ouput anything unless option CARDBUS_DEBUG; ok fgs@ (diff)
downloadwireguard-openbsd-7e3cd69d2800d4a528a868db70a28f90a9b034df.tar.xz
wireguard-openbsd-7e3cd69d2800d4a528a868db70a28f90a9b034df.zip
Change the NKMEMPAGES range to 4-64MB for 32bit arches, and 8-128MB for 64bit
arches; except on sparc where the range is 4-8 for !sun4m and 4-64 for sun4m, selected at runtime.
Diffstat (limited to 'sys/arch/sparc/include/param.h')
-rw-r--r--sys/arch/sparc/include/param.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h
index 1063d837476..5987f2050c6 100644
--- a/sys/arch/sparc/include/param.h
+++ b/sys/arch/sparc/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.30 2005/07/31 15:31:17 miod Exp $ */
+/* $OpenBSD: param.h,v 1.31 2005/09/12 23:05:05 miod Exp $ */
/* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */
/*
@@ -109,8 +109,9 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((6 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((6 * 1024 * 1024) >> PAGE_SHIFT)
+#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)
/* pages ("clicks") to disk blocks */
#define ctod(x) ((x) << (PGSHIFT - DEV_BSHIFT))