]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-bkg-daemon-threads-20071228
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 28 Dec 2007 07:09:11 +0000 (07:09 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 28 Dec 2007 07:09:11 +0000 (07:09 +0000)
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.

(cherry picked from commit 7a1253d1d180716f2aace6e8c115f845fbfe003d)

src/WINNT/afsd/cm_config.h

index b25438a3179bed4d5aa7825e5923262aa8a3705a..6df06c371d570f289049a6b0a18375a60046112f 100644 (file)
@@ -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