From d9486687e8549d4f29076ad095dfb09c14a33eca Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 21 Aug 2006 21:38:55 +0000 Subject: [PATCH] tweak-afsd-autotune-20060821 this (chunksize tuning) needs to be revisited --- src/afsd/afsd.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.39.5