From: Jeffrey Altman Date: Tue, 3 Oct 2006 03:34:53 +0000 (+0000) Subject: STABLE14-windows-buf-write-20061002 X-Git-Tag: openafs-stable-1_4_2~34 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=aae045ba1cf98da14e4dabe0c2477059077381d4;p=packages%2Fo%2Fopenafs.git STABLE14-windows-buf-write-20061002 sq.root of the buffer count is much too small. comments say 1/10th of all buffers every 5 seconds. for now let's do what it says --- diff --git a/src/WINNT/afsd/cm_buf.c b/src/WINNT/afsd/cm_buf.c index 42f16d9bd..82e62e69c 100644 --- a/src/WINNT/afsd/cm_buf.c +++ b/src/WINNT/afsd/cm_buf.c @@ -110,7 +110,7 @@ void buf_IncrSyncer(long parm) bp = cm_data.buf_allp; bp->refCount++; lock_ReleaseWrite(&buf_globalLock); - nAtOnce = (long)sqrt(cm_data.buf_nbuffers); + nAtOnce = cm_data.buf_nbuffers/10; while (buf_ShutdownFlag == 0) { #ifndef DJGPP i = SleepEx(5000, 1);