Score:1

NFS cache on Linux client but only for metadata?

tm flag

I have several mounts shared via NFS. They contain loads of files, from text files to RAW photos.

Issuing find on them is rather painful as even on 1GbE link it just doesn't happen as smooth as on local FS, even kept on spinning rust. Once i run find on given directory, subsequent reads are lightning fast. Keep in mind that i am talking about attributes as size, access rights and placement on directory tree, NOT the actual files' contents.

At first i thought that i could parse somehow ls -lR /nfs/mountpoint, put it into DB and run my "finds" over DB data, but i thought that there's maybye already something which can keep "snapshots" of remote/given filesystem's metadata, possibly refreshing periodically?

I'd like to emphasize on fact that files's content caching is beyond scope of my question.

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.