DEVEL15-tweak-afsd-autotune-20060821
authorDerrick Brashear <shadow@dementia.org>
Mon, 21 Aug 2006 21:41:13 +0000 (21:41 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 21 Aug 2006 21:41:13 +0000 (21:41 +0000)
this (chunksize tuning) needs to be revisited

(cherry picked from commit d9486687e8549d4f29076ad095dfb09c14a33eca)

src/afsd/afsd.c

index 02311dc..b4e401c 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;