Source-Changes-HG archive

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

[src/trunk]: src/common/lib/libc/gen initialize radix_tree_node_cache with PR...



details:   https://anonhg.NetBSD.org/src/rev/e619c5b76b50
branches:  trunk
changeset: 968330:e619c5b76b50
user:      para <para%NetBSD.org@localhost>
date:      Sun Jan 12 20:00:41 2020 +0000

description:
initialize radix_tree_node_cache with PR_LARGECACHE

this increases the cache groups from 15 to 63 items in order
to reduce traffic between pool cache layers
this is the same as for other highly frequented pool caches as the pvpool and anonpool

diffstat:

 common/lib/libc/gen/radixtree.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r ce348a72e174 -r e619c5b76b50 common/lib/libc/gen/radixtree.c
--- a/common/lib/libc/gen/radixtree.c   Sun Jan 12 19:13:55 2020 +0000
+++ b/common/lib/libc/gen/radixtree.c   Sun Jan 12 20:00:41 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radixtree.c,v 1.20 2019/12/05 19:03:39 ad Exp $        */
+/*     $NetBSD: radixtree.c,v 1.21 2020/01/12 20:00:41 para Exp $      */
 
 /*-
  * Copyright (c)2011,2012,2013 YAMAMOTO Takashi,
@@ -112,7 +112,7 @@
 #include <sys/cdefs.h>
 
 #if defined(_KERNEL) || defined(_STANDALONE)
-__KERNEL_RCSID(0, "$NetBSD: radixtree.c,v 1.20 2019/12/05 19:03:39 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radixtree.c,v 1.21 2020/01/12 20:00:41 para Exp $");
 #include <sys/param.h>
 #include <sys/errno.h>
 #include <sys/pool.h>
@@ -122,7 +122,7 @@
 #include <lib/libsa/stand.h>
 #endif /* defined(_STANDALONE) */
 #else /* defined(_KERNEL) || defined(_STANDALONE) */
-__RCSID("$NetBSD: radixtree.c,v 1.20 2019/12/05 19:03:39 ad Exp $");
+__RCSID("$NetBSD: radixtree.c,v 1.21 2020/01/12 20:00:41 para Exp $");
 #include <assert.h>
 #include <errno.h>
 #include <stdbool.h>
@@ -345,7 +345,7 @@
 {
 
        radix_tree_node_cache = pool_cache_init(sizeof(struct radix_tree_node),
-           coherency_unit, 0, 0, "radixnode", NULL, IPL_NONE,
+           coherency_unit, 0, PR_LARGECACHE, "radixnode", NULL, IPL_NONE,
            radix_tree_node_ctor, NULL, NULL);
        KASSERT(radix_tree_node_cache != NULL);
 }



Home | Main Index | Thread Index | Old Index