[OpenAFS-devel] fileserver profiling

Troy Benjegerdes hozer@hozed.org
Tue, 22 Mar 2005 10:12:18 -0600


On Sun, Mar 20, 2005 at 11:33:04AM -0500, Kyle Moffett wrote:
> On Mar 20, 2005, at 10:18, Troy Benjegerdes wrote:
> >So if I have a 1GB memcache, I assume this means the memory is
> >completely unavailable for anything else?
> >
> >The linux buffer/page cache works quite nicely with NFS, and on a
> >machine with several gigs of memory, if all you are doing is compiling,
> >everything gets cached.
> >
> >What I'd really like to be be able to do is set the afsd memcache to
> >zero and find a way to work with the underlying OS'es buffer cache.
> 
> IIRC there was some work in Linux 2.6 to write "cachefs", which is
> essentially a way for the administrator to specify filesystem-backed
> space for a kernel filesystem.  I think the Linux NFS client uses it,
> you could probably look there for some sample code.

If OpenAFS could use cachefs, that would be the best of all worlds..
Does anyone have any idea how similiar or different cachefs on linux
would be from cachefs on Solaris?

FYI, the in-kernel linux 'kafs' client currently uses cachefs.