Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux 3.2-3.7: enable NFS_FSCACHE and CIFS_FSCACHE #253

Merged
merged 1 commit into from
Jan 27, 2013

Conversation

rickynils
Copy link
Member

NFS_FSCACHE and CIFS_FSCACHE are required to enable the local cache support for
NFS and CIFS (the 'fsc' mount option). The reasoning for enabling it from 3.2
and forward is that at least Ubuntu 12.04 (linux 3.2) has it turned on. Could
probably be enabled for earlier kernels too.

NFS_FSCACHE and CIFS_FSCACHE are required to enable the local cache support for
NFS and CIFS (the 'fsc' mount option). The reasoning for enabling it from 3.2
and forward is that at least Ubuntu 12.04 (linux 3.2) has it turned on. Could
probably be enabled for earlier kernels too.
@viric
Copy link
Member

viric commented Jan 9, 2013

So without this, nfs does zero local caching?

@rickynils
Copy link
Member Author

Not zero local caching, the nfs client still has its own cache (attributes etc). And the Linux VFS caches stuff. But the NFS_FSCACHE enables support for using the fsc option for nfs mounts, which makes the nfs client utilise the fscache module which in turn can utilise the cachefiles daemon to cache file data on a local backing device. So in addition to these kernel configs, you also need to load the fscache and cachefiles modules, and run the cachefilesd daemon. I have Nix expressions for both the cachefilesd program, and the required NixOS service, and I will commit them when I have done some more testing.

viric added a commit that referenced this pull request Jan 27, 2013
linux 3.2-3.7: enable NFS_FSCACHE and CIFS_FSCACHE
@viric viric merged commit 39fa2f7 into NixOS:master Jan 27, 2013
@viric
Copy link
Member

viric commented Jan 27, 2013

I guess some day I'll need it.

@Janik-Haag Janik-Haag added the 12. first-time contribution This PR is the author's first one; please be gentle! label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants