4 ms·
Sure, the kernel caches everything in RAM by default (as with any other file system, not just NFS). If you also want to cache on local disk, there's "cachefile
by bonoboTP 7y ago
Sure, the kernel caches everything in RAM by default (as with any other file system, not just NFS).
If you also want to cache on local disk, there's "cachefilesd", which does exactly that. You can specify a certain percentage of the disk that should be kept empty, and cachefilesd will use the rest of the available space for caching.
(It works very well, but is broken on kernel 5.x for me (it just doesn't read from the local cache, even though everything looks fine). But I just mention it off-hand, I don't have time to diagnose this in more detail, I just remain on 4.15 for the time being.)
- lawik 7y agoI think this was what I tried to use for one of those shared file system setups for a web app where we needed shared files. And the daemon responsible for this would end up hard-locking the VPS it was running on. Oh yeah, here's the issue I found that mirrored my experience: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751933 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751933 That was a rough experience since it would run fine until it hit a certain level of load.