diff options
author | kris <kris@FreeBSD.org> | 2008-04-26 13:19:07 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2008-04-26 13:19:07 +0000 |
commit | 4a87c82b19ca031a0e28d32a971c9901e526c2a6 (patch) | |
tree | b247a7973a8548756e59ff5aeab7380a422fad44 | |
parent | 150f1de0cf1e2342ec39b72b7c3969d252db3032 (diff) | |
download | FreeBSD-src-4a87c82b19ca031a0e28d32a971c9901e526c2a6.zip FreeBSD-src-4a87c82b19ca031a0e28d32a971c9901e526c2a6.tar.gz |
Increase the default MUTEX_ADAPTIVE_SPINS to 2000, after further
testing it turns out 200 was too short to give good adaptive
performance.
Reviewed by: jeff
MFC after: 1 week
-rw-r--r-- | lib/libthr/thread/thr_mutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index a3f6c1d..0f593f0 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -69,7 +69,7 @@ * For adaptive mutexes, how many times to spin doing trylock2 * before entering the kernel to block */ -#define MUTEX_ADAPTIVE_SPINS 200 +#define MUTEX_ADAPTIVE_SPINS 2000 /* * Prototypes |