[OpenAFS] Very large caches

Nickolai Zeldovich kolya@MIT.EDU
Mon, 26 Nov 2001 16:40:35 -0500


> ...  is it useful to have a, say, 18Gb client cache?

You might hit some performance problems in the dcache code with a
cache that large.  There's a number of places where the dcache code
does linear scans of all dcache entries, and you'll potentially have
1.8 million dcache entries in the kernel.  (You could probably cut
that down to ~280k by having fewer dcache entries and assuming you'll
cache mostly whole 64K chunks, but it's still quite a bit.)

It'd be interesting to see what particular performance problems you
would infact hit with such a large cache, and fix them, but that's
more in the long run..

-- kolya