bartman's blog

nfs local caching with fscache and cachefilesd on Lenny

bartman
Table of Contents

The idea is to put a caching layer between filesystems, that tend to be slow, and the user, who is impatient. This is accomplished by the fscache kernel module, and the cachefilesd user space daemon. The kernel module intercepts what would be disk/network access and redirects it to the daemon. The daemon uses local media, which supposedly is faster, to cache recent data.

The new Linux native implementation is very generic, and can be used to accelerate anything like floppies and CD-ROMs. I am interested in this because I find NFS slow.

Read more about it at Linux Magazine.

I must come clean. I don’t yet know how well this all works. But I have really high expectations.

building kernel #

building debs #

If you’re on Sqeeze, you might be able to skip this building section and just install the debs from Squeeze. However, because Lenny doesn’t come with support for fscache you’ll have to do the following:

configure #

Now you have all the software ready, you just have to enable it.

Does it work? #

Tags: