[Linux-cachefs] nfsv4 client not reading the cache?

Daire Byrne daire.byrne at gmail.com
Mon Sep 9 12:58:19 UTC 2019


Hi,

I still see this on 5.2.11. On further testing it seem like the RHEL7
kernels work as expected with vers=nfs4,fsc but the mainline kernels do
not. It writes the cache but then never reads from it again so we just keep
re-writing the cache.

Daire

On Sat, Apr 6, 2019 at 10:15 AM Daire Byrne <daire.byrne at gmail.com> wrote:

> Hi,
>
> I'm using the 5.0.5 ml kernel to mount a Linux server with nfsv4. When I
> enable fscache, it caches the reads to disk as expected. But as soon as I
> drop_caches on the client and re-read the same data, it caches to disk
> again, seemingly overwriting the previously cached files.
>
> It works as expected if I mount using nfsv3 instead - after dropping
> caches (or rebooting), it correctly reads the cached files from disk
> without re-writing them again.
>
> I am using the 5.0.5 kernel on a Centos 7.4 installation. The mount
> command is "mount -o vers=4.2,fsc blah:/thing /thing".
>
> Daire
>



More information about the Linux-cachefs mailing list