new class / geom_cache / request for comments

R. B. Riddick arne_woerner at yahoo.com
Tue Jul 4 20:47:14 UTC 2006


--- Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> How do you allocate memory for the cache ?
>
I use malloc(9), which has strange parameters. I just copied it from another
line and adapted it appropriately... The cache is a continguous piece of memory
with a size of a integer multiple of the stripe size (g_cache_softc->cache).
For each cached stripe there is a cache info struct in another piece of memory
(g_cache_softc->cache_info).

> Is it a fixed size cache ?
> 
Yes, it is. There is just a tunable:
  kern.geom.cache.cache_size
  (default: 8)
which is used when the provider is created.

Maybe we should use a parameter in the meta data and in "gcache label/create"
respectively?

-Arne


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the freebsd-geom mailing list