[OpenAFS-devel] split (by percentage) cache space usage for ro/rw

Derrick J Brashear shadow@dementia.org
Thu, 21 Oct 2004 12:43:17 -0400 (EDT)


On Thu, 21 Oct 2004, Jim Rees wrote:

> How about a description for those of us who don't want to slog through the
> code?

you can't really criticize it if you don't look at it. But...


-splitcache 75/25
devotes 75% of your cache space to RW content, and 25% to RO.

or whatever percentages you want

I could make it more generic, but then i'd need to provide either
1) a mechanism to let people load modules to implement the calculation 
functions (yuck)
or
2) a callout to userspace for every cache eviction (slow)

so for now the architecture is generic but the switches and eviction 
optimization are built around rw/ro.