I have an NFS server with 512MB of RAM.
When it boots, the memory usage is around 100MB and the rest is used for caching and buffering.
However, after a few days the NFS rpc.mountd process increases its memory consumption to the point where the RAM doesn't cache anything anymore. rpc.mountd consumes over 50% of the RAM and causes memory to be swapped. After a week, I had over 1GB of swap and rpc.mountd's virtual memory usage keeps growing. Restarting the nfs daemon once in a while fixes it before the kernel runs out of memory and the whole box crashes, but this really looks like a leak. My memory usage for the last month looks like a toothsaw with weekly peaks over 1.5GB.
Here are the options I use :
(/etc/export) /usr/portage 192.168.0.0/16(rw,sync,no_root_squash,no_subtree_check)
(/etc/fstab) server:/usr/portage /usr/portage nfs async,soft,intr,rw,lock,rsize=8192,wsize=8192 0 0
Did anyone else experience that?
I tried both nfs-utils-1.0.10 and nfs-utils-1.0.12-r3. Apparently, a leak was fixed between nfs-utils-1.0.12 and nfs-utils-1.0.12-r3 but it might be a different one.


