Score:1

What mount options can be used for read-only NFS export that is known not to change?

cn flag

We have versions of datasets mounted from readonly snapshots of our enterprise file system, so we know the data on the mount never changes. Wondering what the best mount options are so NFS doesn't spend time checking for changes?

cn flag
Bob
AFAIK there are neither mount nor export options that instruct the system that the file system being exported/mounted is immutable. The only real option is "ro" (readonly) , which you're probably already using
Score:0
de flag

If the contents of the directories doesn't change, then you can bump the attribute cache lifetime to reduce the number of GETATTR requests. Moreover, the lookup cache positiv and negative results can be cached as well.

mount -o actimeo=3600,lookupcache=all srv:/data /mnt

The value is in seconds.

Of course, as by any configuration change you should measure the effect. Thus, you can use nfsstat utility to monitor the number of sent GETATTR and READDIR requests.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.