From 9fbea6e3906f219d73a28b2a1545f009c1c814db Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 21 Aug 2006 21:39:40 +0000 Subject: [PATCH] STABLE14-tweak-afsd-autotune-20060821 this (chunksize tuning) needs to be revisited (cherry picked from commit d9486687e8549d4f29076ad095dfb09c14a33eca) --- src/afsd/afsd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 03e77408d..1ac0e4894 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -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; -- 2.39.5