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

(cherry picked from commit d9486687e8549d4f29076ad095dfb09c14a33eca)

src/afsd/afsd.c

index 03e77408d90164117d5e4f79b47296d7f06f7944..1ac0e4894552499203a0c4f57f9ae9655c0132ec 100644 (file)
@@ -1666,12 +1666,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;