Subject: Re: kern/32318: NFS client or server hang
To: None <kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 12/16/2005 20:07:44
On Fri, Dec 16, 2005 at 07:00:01PM +0000, Manuel Bouyer wrote:
> 	Problem: from time to time, the process accessing the files on
> 	the NFS server hang. This usually happens when the client does
> 	2 concurent accesses to the mailboxes (e.g. reading a mailbox
> 	with mutt while procmail tries to deliver a mail to this mailbox).
> 	I've seen this also before the 3.0 branch was cut, with the NFS server
> 	running 2.0 or 2.1. I've never noticed this when the server was running
> 	1.6.2 (it started happening when the server got upgraded).
> 	Doing a /etc/rc.d/nfsd restart on the server unwedge the processes
> 	on the client box.

Forgot to say: the NFS server doesn't seem to be in a bad state when
this happens:
chassiron#/home/bouyer>ps axlww | grep nfsd
 0   235  1047   0   2  0    52   404 nfsd     IL   ?      1:36.42 nfsd: server
 0   688  1047   0   2  0    52   404 nfsd     SL   ?      1:47.95 nfsd: server
 0   725  1047   0   2  0    52   404 nfsd     IL   ?      1:39.45 nfsd: server 
 0   749  1047   0   2  0    52   404 nfsd     IL   ?      1:33.79 nfsd: server 
 0  1047     1   0   2  0   172   680 poll     IWs  ?      0:00.44 nfsd: master 
 0 12821   655   6   2  0   200   764 piperd   S+   ttyp1  0:00.09 grep nfsd  

I suspect /etc/rc.d/nfsd restart gets things going again only because the
TCP connections are closed.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--