]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
tweak-afsd-autotune-20060821
authorDerrick Brashear <shadow@dementia.org>
Mon, 21 Aug 2006 21:38:55 +0000 (21:38 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 21 Aug 2006 21:38:55 +0000 (21:38 +0000)
this (chunksize tuning) needs to be revisited

src/afsd/afsd.c

index 02311dc844c8c74f67bd11b31fcebc0865826a5a..b4e401c3649dfbf7b19ba7b9bcb50ac4c33229df 100644 (file)
@@ -1687,12 +1687,19 @@ mainproc(struct cmd_syndesc *as, char *arock)
            if (afsd_verbose)
                printf("%s: cacheFiles autotuned to %d\n", rn, cacheFiles);
        }
+#if 0
+       /* This actually needs to
+          1) use powers of 2
+          2) not second-guess when a chunksize comes from the command line
+          3) be less, um, small. 2^2?? 
+       */
        /* Sanity check chunkSize */
        i = max(cacheBlocks / 1000, cacheBlocks / cacheFiles);
        chunkSize = min(chunkSize, i);
        chunkSize = max(chunkSize, 2);
        if (afsd_verbose)
            printf("%s: chunkSize autotuned to %d\n", rn, chunkSize);
+#endif
 
        if (!sawDCacheSize) {
            dCacheSize = cacheFiles / 2;