[OpenAFS-devel] fileserver profiling

Kyle Moffett mrmacman_g4@mac.com
Sun, 20 Mar 2005 11:33:04 -0500


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.

Cheers,
Kyle Moffett

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/CS/IT/U d- s++: a18 C++++>$ UB/L/X/*++++(+)>$ P+++(++++)>$
L++++(+++) E W++(+) N+++(++) o? K? w--- O? M++ V? PS+() PE+(-) Y+
PGP+++ t+(+++) 5 X R? tv-(--) b++++(++) DI+ D+ G e->++++$ h!*()>++$ r  
!y?(-)
------END GEEK CODE BLOCK------