NFSD running out of threads

Jim Kronebusch jim at winonacotter.org
Tue Sep 25 17:40:33 BST 2007


Apparently there is also a /etc/default/nfs-kernel-server file where you also need to
override the thread count.  To verify run the following:

root at ltsp:/var/crash# cat /proc/net/rpc/nfsd
rc 1 1330967 29064026
fh 0 0 0 0 0
io 1940356970 2076042633
th 128 10518 828.370 83.540 32.100 0.000 22.560 10.740 9.650 6.390 0.000 37.200
ra 256 1850423 0 0 0 0 0 0 0 0 0 1983107
net 30395386 3 30395063 836
rpc 30395006 0 0 0 0
proc2 18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
proc3 22 512 13695140 756403 5629729 5244315 303362 3833543 253939 144381 19573 10048 4
3907 51 142416 246 0 165340 136 1010 0 190998
proc4 2 0 0
proc4ops 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

The line starting with th will tell you how many threads are running "th 128" tells me
that I now have 128 threads.  I kept seeing this error pop up when a bunch of clients
booted which told me I still didn't have things fixed.

Jim

On Tue, 18 Sep 2007 12:49:21 -0500, Jim Kronebusch wrote
> I found out yesterday with all my messing around that I was running out of 
> threads in nfsd causing errors from clients.  To find out if you're having 
> these problems run the following on the server:
> 
> cat syslog | grep nfsd
> 
> And see if you have any lines with the following errors.
> 
> nfsd, too many open tcp sockets, consider increasing the number of nfsd threads
> 
> If so edit the nfs server to start more threads by "sudo /etc/init.d/nfs-
> kernel-server" and increasing the thread count on the following line:
> 
> RPCNFSDCOUNT=8
> 
> I increased to 64 and all my errors went away.  I don't know what the 
> consequence is of having too many nfsd threads, but this cleared it up for me. 
>  If anyone knows of any reason not to run this high please post.
> 
> Jim Kronebusch
> Cotter Tech Department
> 453-5188
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by the Cotter Technology 
> Department, and is believed to be clean.
> 
> -- 
> edubuntu-users mailing list
> edubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: 
> https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by the Cotter Technology 
> Department, and is believed to be clean.


Jim Kronebusch
Cotter Tech Department
453-5188


-- 
This message has been scanned for viruses and
dangerous content by the Cotter Technology 
Department, and is believed to be clean.




More information about the edubuntu-users mailing list