NFS client over udp

Kirill Yelizarov ykirill at
Fri Feb 18 13:39:56 UTC 2011

Good Day!

I have a reproducible memory leak when using nfs client with an old nfs server using udp protocol. I'm running rsync every hour from a mounted nfs volume to an ufs local volume. Each time rsync is running wired memory is increased. Wired memory is rising when rsync is in getblk or biord state. When rsync is complete memory is not freed and lately all memory is in active or wired state and system starts swapping. I didn't see such behavior when client os was RELEASE-8.0. Then i switched to STABLE-8.1 of late summer and found this leak so i upgraded to STABLE-8.2Prerelease and got the same leak. vmstat -m shows nothing big. 

client version:
FreeBSD imap1.***.com 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Thu Feb 17 13:54:25 MSK 2011     root at imap1.****.com:/usr/obj/usr/src/sys/IMAP1  amd64

i tried different mounting options:       
1 - rw,rsize=32768,wsize=32768,nfsv3,intr,mntudp,rdirplus,
2 - rw,nfsv3,mntudp,noexec

i also tried setting -tso -txcsum -rxcsum for igb network card



More information about the freebsd-stable mailing list