[OpenAFS-devel] Patch to implement default tuning proposal discussed a while ago

Troy Benjegerdes hozer@hozed.org
Wed, 17 Aug 2005 12:44:32 -0500


On Wed, Aug 17, 2005 at 11:46:48AM -0400, chas williams - CONTRACTOR wrote:
> In message <5517960EBB37390A9CAB189F@sirius.fac.cs.cmu.edu>,Jeffrey Hutzelman w
> rites:
> >experience to do their own tuning.  I'd much rather optimize for those 
> >cases and make people like Chas do their own tuning, if the defaults aren't 
> >good enough.
> 
> which is why i would favor erring on the side of caution with regard
> to the number of files.  most people are just going to create a 10G
> or 20G w/o thinking about the related issues.  if you really need
> a 10G with 300,000 files then you should give the -files option.
> when -files gets large, things tend to slow down.

I completely agree. 
But the first, and easiest thing to do to help people figure out tuning
is to have 'fs getcacheparms' print out more than just size usage. I'd
like be able to do something like:

fs getcacheparms all
AFS cache useage:
24825728 of 100000000 available 1k byte blocks (24%)
12354 of 100000 available files (12%)
.. vcache, dcache .. etc

Is this kind of info available to the fs command?

--------------------------------------------------------------------------
Troy Benjegerdes                'da hozer'                hozer@hozed.org  

Somone asked me why I work on this free (http://www.fsf.org/philosophy/)
software stuff and not get a real job. Charles Shultz had the best answer:

"Why do musicians compose symphonies and poets write poems? They do it
because life wouldn't have any meaning for them if they didn't. That's why
I draw cartoons. It's my life." -- Charles Shultz