Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/include Bump UBC_WINSHIFT & UBC_NWINS to more...



details:   https://anonhg.NetBSD.org/src/rev/144039d9f3c7
branches:  trunk
changeset: 467221:144039d9f3c7
user:      ad <ad%NetBSD.org@localhost>
date:      Fri Jan 17 21:14:16 2020 +0000

description:
Bump UBC_WINSHIFT & UBC_NWINS to more reasonable values for amd64.

diffstat:

 sys/arch/amd64/include/param.h |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r cb57ae04ff87 -r 144039d9f3c7 sys/arch/amd64/include/param.h
--- a/sys/arch/amd64/include/param.h    Fri Jan 17 20:28:59 2020 +0000
+++ b/sys/arch/amd64/include/param.h    Fri Jan 17 21:14:16 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.33 2019/11/14 16:23:52 maxv Exp $  */
+/*     $NetBSD: param.h,v 1.34 2020/01/17 21:14:16 ad Exp $    */
 
 #ifdef __x86_64__
 
@@ -113,6 +113,17 @@
 #define        NKMEMPAGES_MAX_UNLIMITED 1
 
 /*
+ * Defaults for Unified Buffer Cache parameters.
+ */
+
+#ifndef UBC_WINSHIFT
+#define        UBC_WINSHIFT    16      /* 64kB */
+#endif
+#ifndef UBC_NWINS
+#define        UBC_NWINS       4096    /* 256MB */
+#endif
+
+/*
  * XXXfvdl the PD* stuff is different from i386.
  */
 /*



Home | Main Index | Thread Index | Old Index