Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include/arm32 Bump the amount of KMEM allowed t...



details:   https://anonhg.NetBSD.org/src/rev/3807eef88b02
branches:  trunk
changeset: 848889:3807eef88b02
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Feb 13 07:40:24 2020 +0000

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

diffstat:

 sys/arch/arm/include/arm32/param.h |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 25a3c9f3857c -r 3807eef88b02 sys/arch/arm/include/arm32/param.h
--- a/sys/arch/arm/include/arm32/param.h        Thu Feb 13 06:28:25 2020 +0000
+++ b/sys/arch/arm/include/arm32/param.h        Thu Feb 13 07:40:24 2020 +0000
@@ -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 */
 



Home | Main Index | Thread Index | Old Index