Date: Sat, 13 Jan 2024 15:41:02 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 276299] Write performance to NFS share is ~4x slower than on 13.2 Message-ID: <bug-276299-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276299 Bug ID: 276299 Summary: Write performance to NFS share is ~4x slower than on 13.2 Product: Base System Version: 14.0-RELEASE Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dmilith@me.com I've upgraded my aarch64 box (RockPro64 with 4G RAM) which serves a ZFS pool over NFS. Before the upgrade (on FreeBSD 13.2) my upload speed to the share was like 50-70MiB/s. After the upgrade to FreeBSD 14.0, it struggles to get even 10M= iB/s write. I've tried switching from NFSd v3 to v4. It's even worse (6MiB/s write). The disk is WD Gold, 10TiB. So I'm quite sure it's not about the disk speed= or the network speed (my router has 1G ports). My /etc/rc.conf: # NFS hostid_enable=3D"YES" nfscbd_enable=3D"YES" rpcbind_enable=3D"YES" nfs_server_enable=3D"YES" nfsv4_server_only=3D"NO" nfsv4_server_enable=3D"YES" nfsuserd_enable=3D"YES" mountd_enable=3D"YES" mountd_flags=3D"-r" rpc_lockd_enable=3D"YES" rpc_statd_enable=3D"YES" I've bumped /etc/sysctl.conf settings to huge values: net.inet.raw.maxdgram=3D262144 net.inet.raw.recvspace=3D1048576 net.inet.tcp.sendspace=3D1048576 vfs.nfsd.srvmaxio=3D1048576 vfs.nfsd.maxthreads=3D128 net.inet.tcp.rfc1323=3D1 net.inet.tcp.sendbuf_max=3D16777216 net.inet.tcp.recvbuf_max=3D16777216 But this improved nothing. Maybe it's even worse=E2=80=A6 My NFS client (macOS 13+) uses these options: mount_nfs \ -o \ =20 rw,vers=3D4,deadtimeout=3D0,readahead=3D6,noatime,sync,async,hard,bg,intr,i= net,tcp,nfc,rsize=3D1048576,wsize=3D1048576,dsize=3D1048576 \ vks4.home:/Copies/VMs \ /Users/Shared/NFS/VMs My sequential read from NFS is as before (~50-70MiB/s). Which is "okay" for that HW. But what can I do to bring the write speed back to 50MiB/s? Did I = do something wrong? Thanks --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276299-227>