Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Bump UBC defaults on sparc64 & aarch64, which alrea...



details:   https://anonhg.NetBSD.org/src/rev/87f21f872d4c
branches:  trunk
changeset: 1006658:87f21f872d4c
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Jan 22 16:59:37 2020 +0000

description:
Bump UBC defaults on sparc64 & aarch64, which already have a large pager_map.

diffstat:

 sys/arch/aarch64/include/vmparam.h |  13 ++++++++++++-
 sys/arch/sparc64/include/vmparam.h |  13 ++++++++++++-
 2 files changed, 24 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r cd893933789b -r 87f21f872d4c sys/arch/aarch64/include/vmparam.h
--- a/sys/arch/aarch64/include/vmparam.h        Wed Jan 22 16:52:46 2020 +0000
+++ b/sys/arch/aarch64/include/vmparam.h        Wed Jan 22 16:59:37 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.9 2020/01/21 10:54:11 jmcneill Exp $ */
+/* $NetBSD: vmparam.h,v 1.10 2020/01/22 16:59:38 ad Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -42,6 +42,17 @@
 #define        PAGER_MAP_DEFAULT_SIZE  (512 * 1024 * 1024)
 
 /*
+ * Defaults for Unified Buffer Cache parameters.
+ */
+
+#ifndef UBC_WINSHIFT
+#define        UBC_WINSHIFT    16      /* 64kB */
+#endif
+#ifndef UBC_NWINS
+#define        UBC_NWINS       4096    /* 256MB */
+#endif
+
+/*
  * AARCH64 supports 3 page sizes: 4KB, 16KB, 64KB.  Each page table can
  * even have its own page size.
  */
diff -r cd893933789b -r 87f21f872d4c sys/arch/sparc64/include/vmparam.h
--- a/sys/arch/sparc64/include/vmparam.h        Wed Jan 22 16:52:46 2020 +0000
+++ b/sys/arch/sparc64/include/vmparam.h        Wed Jan 22 16:59:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.39 2018/09/03 16:29:28 riastradh Exp $ */
+/*     $NetBSD: vmparam.h,v 1.40 2020/01/22 16:59:37 ad Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -64,6 +64,17 @@
 #define        PAGER_MAP_DEFAULT_SIZE (512 * 1024 * 1024)
 
 /*
+ * Defaults for Unified Buffer Cache parameters.
+ */
+
+#ifndef UBC_WINSHIFT
+#define        UBC_WINSHIFT    16      /* 64kB */
+#endif
+#ifndef UBC_NWINS
+#define        UBC_NWINS       4096    /* 256MB */
+#endif
+
+/*
  * The kernel itself is mapped by the boot loader with 4Mb locked VM pages,
  * so let's keep 4Mb definitions here as well.
  */



Home | Main Index | Thread Index | Old Index