From 7a1253d1d180716f2aace6e8c115f845fbfe003d Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 28 Dec 2007 07:07:53 +0000 Subject: [PATCH] windows-bkg-daemon-threads-20071228 LICENSE MIT Reduce the default number of background daemon threads used for prefetch and store operations to one. Given the current implementation when more than one thread is allocated they step on each other's toe while fighting over locks. A better model might be to divide up threads based upon cells or volumes as a means of preventing contention. --- src/WINNT/afsd/cm_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/cm_config.h b/src/WINNT/afsd/cm_config.h index 347cfb663..1a75b4172 100644 --- a/src/WINNT/afsd/cm_config.h +++ b/src/WINNT/afsd/cm_config.h @@ -14,7 +14,7 @@ #define CM_CONFIGDEFAULT_BLOCKSIZE 4096 #define CM_CONFIGDEFAULT_STATS 10000 #define CM_CONFIGDEFAULT_CHUNKSIZE 18 /* 256KB */ -#define CM_CONFIGDEFAULT_DAEMONS 2 +#define CM_CONFIGDEFAULT_DAEMONS 1 #define CM_CONFIGDEFAULT_SVTHREADS 25 #define CM_CONFIGDEFAULT_TRACEBUFSIZE 5000 -- 2.39.5