Skip to content

Commit

Permalink
nfs: grow the fhandle cache size to 1024*1024 (#274)
Browse files Browse the repository at this point in the history
This fixes the ESTALE problem.

Performance to a linode system is very usable with NFS.

Signed-off-by: Ronald G Minnich <[email protected]>
  • Loading branch information
rminnich authored May 3, 2024
1 parent d0c3c8e commit 9158db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/union.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ func SrvNFS(cl *Cmd, n string, dir string) (func() error, string, error) {
}
handler := NewNullAuthHandler(l, COS{mem}, u.String())
verbose("uuid is %q", u.String())
cacheHelper := nfshelper.NewCachingHandler(handler, 1024)
cacheHelper := nfshelper.NewCachingHandler(handler, 1024*1024)
f := func() error {
return nfs.Serve(l, cacheHelper)
}
Expand Down

0 comments on commit 9158db3

Please sign in to comment.