From: Ding Tianhong <dingtianhong@huawei.com>
To: <linux-nfs-approval@vger.kernel.org>, <tom@herbertland.com>,
Netdev <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
<dhowells@redhat.com>, <viro@zeniv.linux.org.u>,
<chuck.lever@oracle.com>
Subject: [RFC] Is it a bug for nfs on udp6 mode or kernel?
Date: Wed, 13 Apr 2016 19:28:41 +0800 [thread overview]
Message-ID: <570E2D69.7080102@huawei.com> (raw)
Hi everyone:
I have met this problem when I try to test udp6 for nfs connection, my environment is:
Server:
kernel: 4.1.15
IP:xxxx::36/64
MTU:1500
Setting: /etc/exports:/home/nfs *(rw,sync,no_subtree_check,no_root_squash)
Client:
kernel: 4.1.18
IP:xxxx::90/64
MTU:1500
command: mount -t nfs -o vers=3,proto=udp6,rsize=4096,wsize=4096 [xxxx::36]:/home/nfs /home/tmp
I check the nfs parameter configuration, it looks fine and could work well for proto=tcp6.
Then I have mount correctly and try to run the command "ls", it hang.
When I use the rsize=1024 and wsize=1024 to mount, the problem disappeared, so I guess it is the problem for GSO or GRO for UDP。
Then I try to debug the problem, first I tcpdump the package from cline to server, and found that
the client have send readdirplus message to server correctly, and then the Server send a 4k package
to client(the big package will frag to 4 package by GSO), till now it looks fine, and the Client Nic could
receive the 4 skb then send to upper stack to ipv6 and udp, I found the incoming 4 package has been merged
to one and send to upper stack just like sunrpc, but I try to open the rpc_debug, it looks that the rpc could
not receive message.
I built a simple demo to test the udp stack, use the client socket to send big package to server socket, it work well,
so I think the udp is fine, maybe the bug is in sunrpc.
The test is very simple, does any body met the same problem like me, thanks for any suggestion.
Ding
next reply other threads:[~2016-04-13 11:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-13 11:28 Ding Tianhong [this message]
2016-04-13 14:11 ` [RFC] Is it a bug for nfs on udp6 mode or kernel? Benjamin Coddington
2016-04-14 0:56 ` Ding Tianhong
2016-04-13 16:17 ` Eric Dumazet
2016-04-14 0:59 ` Ding Tianhong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=570E2D69.7080102@huawei.com \
--to=dingtianhong@huawei.com \
--cc=chuck.lever@oracle.com \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs-approval@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=tom@herbertland.com \
--cc=viro@zeniv.linux.org.u \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).