From c6c3a4038905169ab717e64775920147d6f34c3f Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Fri, 28 Sep 2018 14:55:56 -0500 Subject: [PATCH] afs: Raise osidnlc NCSIZE The currrent size of the osi DNLC is very small; only 300 entries. Raise it to 4096 entries, to give it some chance of actually helping. In the future, of course, this should be runtime configurable, and we should also raise the hash table size. For now, just raise the number of entries without changing anything else, to try to make sure nothing breaks. With the hash size of 256, this means our hash chains will be at least 16 items long. However, traversing even hundreds of hash items should still be better than frequently hitting the disk cache to find entries, and acquiring more locks, etc. Reviewed-on: https://gerrit.openafs.org/13531 Tested-by: BuildBot Reviewed-by: Michael Meffie Reviewed-by: Benjamin Kaduk (cherry picked from commit 12b46b6af778625a9c360dca61a59fcf30b76fd1) Change-Id: Ib4fd8bd01e2df22617e5a549d4ac76ba1d50b2fd Reviewed-on: https://gerrit.openafs.org/13559 Reviewed-by: Mark Vitale Reviewed-by: Cheyenne Wills Reviewed-by: Michael Meffie Reviewed-by: Marcio Brito Barbosa Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- src/afs/afs_osidnlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/afs_osidnlc.c b/src/afs/afs_osidnlc.c index 9d267e4c0..974eb4b85 100644 --- a/src/afs/afs_osidnlc.c +++ b/src/afs/afs_osidnlc.c @@ -32,7 +32,7 @@ extern struct afs_lock afs_xvcache; dnlcstats_t dnlcstats; -#define NCSIZE 300 +#define NCSIZE 4096 #define NHSIZE 256 /* must be power of 2. == NHASHENT in dir package */ struct nc *ncfreelist = NULL; static struct nc nameCache[NCSIZE]; -- 2.39.5