From: Derrick Brashear Date: Mon, 21 Aug 2006 21:38:55 +0000 (+0000) Subject: tweak-afsd-autotune-20060821 X-Git-Tag: BP-openafs-windows-kdfs-ifs~1090 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d9486687e8549d4f29076ad095dfb09c14a33eca;p=packages%2Fo%2Fopenafs.git tweak-afsd-autotune-20060821 this (chunksize tuning) needs to be revisited --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 02311dc84..b4e401c36 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -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;