From 1b5abfb3c98aa17a9f240fd6e4c15b926b8dc232 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 12 Aug 2017 11:40:30 -0700 Subject: [PATCH] kernel - Bump wakeup hash size a little * Bump from 4001 to 8191 entries to reduce chain length to help situations where a large numbers of user threads are in a wait state (in the tens or hundreds of thousands of threads). --- sys/kern/kern_synch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index abfad767a7..dcf2cf17eb 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -307,7 +307,7 @@ updatepcpu(struct lwp *lp, int cpticks, int ttlticks) * unnecessary IPIs. However, larger sizes also have diminishing returns * and eat memory. */ -#define TABLESIZE 4001 /* 4001, 8191, or 16369 */ +#define TABLESIZE 8191 /* 4001, 8191, or 16369 */ #define LOOKUP(x) (((u_int)(uintptr_t)(x)) % TABLESIZE) static cpumask_t slpque_cpumasks[TABLESIZE]; -- 2.11.4.GIT