Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Nov 2015 19:04:59 -0500 (EST)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Gerrit =?utf-8?B?S8O8aG4=?= <gerrit.kuehn@aei.mpg.de>
Cc:        freebsd-net@freebsd.org
Subject:   Re: strange nfs/rsync stalls
Message-ID:  <1569514731.73706862.1446681899411.JavaMail.zimbra@uoguelph.ca>
In-Reply-To: <20151104144354.acccf3c7315a6009264d755d@aei.mpg.de>
References:  <20151104144354.acccf3c7315a6009264d755d@aei.mpg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Gerritt Kuhn wrote:
> Hi all,
> 
> I see some weird (I think) NFS issue here:
> I have a NFS server running 10.2-RELEASE exporting a directory to a NFS
> client running 10.2-STABLE (as of yesterday, tried that update from 10.1
> to see if it would fix this issue, but it stayed with me). I use rsync on
> the client to copy data from local disks to nfs.
> This appears to work for a few minutes, then the rsync process gets stuck
> in state "NEWNFS". Messages "newnfs server servername:/data/systems: not
> responding" start appearing and get repeated over and over.
> 
> What I think is strange: I cannot see any issue apart from these rsync
> jobs getting stuck. I can still access the nfs-mounted data on the client
> just fine in a different shell. I can read, write, do whatever I like, but
> the rsync job never moves on.
> I have a couple of other machines that use the same server in the same way,
> none of them ever showed this behaviour. Are there any suggestions how to
> debug/fix this?
> 
You didn't mention what kind of net interface you are using.
1 - disable TSO if you haven't already done so.
2 - try capturing packets when it is stuck and nothing else is being done
    on the mount point and see if any traffic is being sent to the server.
    # tcpdump -s 0 -w <file>.pcap host <nfs-server>
    - run on the client for a little while should do it.
    --> Look at <file>.pcap in wireshark, since it knows NFS, unlike tcpdump.
3 - Do "nfsstat -e -c" on the client a few times when it is stuck and see what
    RPC counts are increasing. (Again when nothing else is being done on the mount.)

Hopefully, the above will give you some idea of what is going on.
(Btw, all processes stuck in "newnfs" tells you is that they are waiting for an
 NFS client vnode lock held by some other thread.)

Good luck with it, rick

> 
> cu
>   Gerrit
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1569514731.73706862.1446681899411.JavaMail.zimbra>