]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-buf-write-20061002
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 3 Oct 2006 03:34:53 +0000 (03:34 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 3 Oct 2006 03:34:53 +0000 (03:34 +0000)
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

src/WINNT/afsd/cm_buf.c

index 42f16d9bdad32757f9f14e1faaa0719923335334..82e62e69c3c01fd62a1d4880fc42fdf11f1cd3e6 100644 (file)
@@ -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);