From 27f71242b74ea402db45c1e6b3b79708b78762d4 Mon Sep 17 00:00:00 2001 From: David Goldblatt Date: Thu, 5 Aug 2021 10:27:25 -0700 Subject: [PATCH] Mutex: Tweak internal spin count. The recent pairing heap optimizations flattened the lock hold time profile. This was a win for raw cycle counts, but ended up causing us to "just miss" acquiring the mutex before sleeping more often. Bump those counts. --- src/mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mutex.c b/src/mutex.c index 79b8f275..0b3547a8 100644 --- a/src/mutex.c +++ b/src/mutex.c @@ -13,7 +13,7 @@ * Based on benchmark results, a fixed spin with this amount of retries works * well for our critical sections. */ -int64_t opt_mutex_max_spin = 250; +int64_t opt_mutex_max_spin = 600; /******************************************************************************/ /* Data. */