From 9158db37bc1f4c72f21a4da4c2205db845afaac6 Mon Sep 17 00:00:00 2001 From: ron minnich Date: Fri, 3 May 2024 15:41:28 -0700 Subject: [PATCH] nfs: grow the fhandle cache size to 1024*1024 (#274) This fixes the ESTALE problem. Performance to a linode system is very usable with NFS. Signed-off-by: Ronald G Minnich --- client/union.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/union.go b/client/union.go index 730ea100..1342b013 100644 --- a/client/union.go +++ b/client/union.go @@ -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) }