From: "Kenneth Aafløy" <keaafloy@online.no>
To: linux-kernel@vger.kernel.org
Subject: Strange NFS behavior (?)
Date: Mon, 17 May 2004 02:43:18 +0200 [thread overview]
Message-ID: <200405170243.18245.keaafloy@online.no> (raw)
Hi,
please grab the closest baseball bat and use it on my head if i'm somewhat
immature with my posting. I've basically tried to get an answer on the
netfilter-devel list on this subject, since this part of the linux kernel
seems to pick up the error (though, it might not be located anywhere near
that part).
I'm unsure if I should use the guidelines at kernel,org and post a complete
description of my system or not. I choose not to, but I will do if anybody
asks me to do so.
(please read the message and replys below)
Also, as stated in the last reply by me (below), this is probably just user
knowhow, and should probably be disregarded as a kernel error (?), but my
question is:
Why does not the NFS code (server or client) try to either limit or increase
the buffer size when performance is at least 10x slower than that of the
medium it's mounted on, and no other load is present? And why is the
performance really so bad with higher r/wsize?
Regards,
Kenneth
(This is my first post to linux-kernel, and I take away any responsibility
that this message is sane in any way ;)
--- Original Post To NetFilter Devel ---
I've come across some strange behavior with a nfs server running on 2.6.6-rc3
today. My clients is also running this version. Basically when I set the NFS
client r/wsize = 8192, or remove the connection tracking netfilter modules
the problem goes away. If I set the r/wsize to 16834 and the conntrack module
is loaded I end up in the code segment below. When this happens the NFS
client will almost lose connection with the server, and print a lot of;
NFS server not responding, still trying. NFS server OK.
I've also tried 2.6.5, and the error is present there too, but not the segment
below, so I got no warning. I have not yet tried any lower version of the
kernel yet, but will do so if it's requested. I could also have provided you
with extensive information about my setup's, but I belive it's a minor
problem with the reassembly of fragmented packets.
ip_conntrack_core.c:798
/* Never happen */
if ((*pskb)->nh.iph->frag_off & htons(IP_OFFSET)) {
if (net_ratelimit()) {
printk(KERN_ERR "ip_conntrack_in: Frag of proto %u (hook=%u)\n",
(*pskb)->nh.iph->protocol, hooknum);
}
return NF_DROP;
}
Does anybody have a solution for the problem exept making (manually) sure that
any client does not request a r/wsize above 8192?
---- Reply #1: ----
I'm seeing this to on a 2.4.22 kernel. I didn't change anything on the
r/wsize, so I have the default of 4096, I think. Both have conntrack loa=
ded.
Martijn Lievaart
---- Reply #2: ----
Could you test this patch? If it triggers we know that we still have
fragmented packets after defrag, which we shouldn't.
--- linux-2.6.6-rc3/net/ipv4/netfilter/ip_conntrack_standalone.c.orig=09200=
4-05-07 12:22:36.000000000 +0200
+++ linux-2.6.6-rc3/net/ipv4/netfilter/ip_conntrack_standalone.c=092004-05-=
07 12:24:37.000000000 +0200
@@ -211,6 +211,10 @@
=09=09if (!*pskb)
=09=09=09return NF_STOLEN;
=09}
+
+=09if ((*pskb)->nh.iph->frag_off & htons(IP_MF|IP_OFFSET))
+=09=09printk(KERN_ERR "ip_conntrack_defrag: packet still fragmented after =
defrag!\n");
+
=09return NF_ACCEPT;
}
/Martin
---- My response (no replys as of this moment): ----
This patch does not trigger any suspicious behaviour. I also have done some
additional testing (must have been half asleep last time), and I've found
that I only end up in the "ip_conntrack_in: Frag of proto %u" code if I mount
a nfs share locally, and that this local share will stall completly if the
conntrack module is loaded. If I mount the share from a remote client, it
will work just fine. Is this a bug or just me doing to little reading?
About the slowness of NFS from remote clients, this is just because the
default r/wsize is to high for the wireless card I was using. Sorry for not
checking more thoroughly and not reading the HOWTOs!
---- End ----
next reply other threads:[~2004-05-17 0:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-17 0:43 Kenneth Aafløy [this message]
2004-05-17 0:51 ` Trond Myklebust
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=200405170243.18245.keaafloy@online.no \
--to=keaafloy@online.no \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®