Module Name: src
Committed By: skrll
Date: Thu Feb 13 07:40:24 UTC 2020
Modified Files:
src/sys/arch/arm/include/arm32: param.h
Log Message:
Bump the amount of KMEM allowed to 1/3rd of KVM. _ARCH_ARM_6 has a split
of 2:2 and others have a split of 3:1.
Tested by martin@ Thanks
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/arm/include/arm32/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/arm/include/arm32/param.h
diff -u src/sys/arch/arm/include/arm32/param.h:1.29 src/sys/arch/arm/include/arm32/param.h:1.30
--- src/sys/arch/arm/include/arm32/param.h:1.29 Sat Feb 1 09:21:49 2020
+++ src/sys/arch/arm/include/arm32/param.h Thu Feb 13 07:40:24 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.29 2020/02/01 09:21:49 skrll Exp $ */
+/* $NetBSD: param.h,v 1.30 2020/02/13 07:40:24 skrll Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe.
@@ -66,7 +66,12 @@
* logical pages.
*/
#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
+
+#if defined(_ARM_ARCH_6)
+#define NKMEMPAGES_MAX_DEFAULT ((768 * 1024 * 1024) >> PAGE_SHIFT)
+#else
+#define NKMEMPAGES_MAX_DEFAULT ((256 * 1024 * 1024) >> PAGE_SHIFT)
+#endif
/* Constants used to divide the USPACE area */