From: Olaf Kirch <okir@suse.de>
To: nfs@lists.sourceforge.net
Subject: NFS over TCP: random drop
Date: Tue, 16 Mar 2004 12:11:49 +0100 [thread overview]
Message-ID: <20040316111149.GS25405@suse.de> (raw)
Hi,
I am looking into an NFS problem at one of our customers. They are
running NFS over TCP, and the client is some kind of mainframe OS.
What happens is this:
client: initiates connections, 3way handshake completes
server: closes connection (FIN)
client: (at the same moment) sends data to server
server: RST
client: argh (reports EIO to application)
What seems to happen here is the random connection drop in svcsock.c,
where we randomly drop a connection if the total number of TCP connections
exceeds (nrthreads + 3) * 10. "Randomly" here means either the oldest
connection, or the newest one (which happens to be the one we just
accepted).
The specific problem we have here is that the client doesn't grok TCP RSTs
generated by the server. It's arguably a client bug, but I'm nevertheless
thinking about a way to work around this
Possible solutions:
- always drop the oldest connection. The current strategy doesn't
help much against DoS anyway, because rather than dropping
old connections for _every_ new one, we drop them for every
two new connections. Big improvement :)
- Create a sysctl that allows to set a hard limit for active
TCP connections.
- increase the "random drop" threshold to something like
(nrthreads + 3) * 100.
Any comments?
Olaf
--
Olaf Kirch | Stop wasting entropy - start using predictable
okir@suse.de | tempfile names today!
---------------+
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next reply other threads:[~2004-03-16 11:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-16 11:11 Olaf Kirch [this message]
2004-03-16 15:50 ` NFS over TCP: random drop Trond Myklebust
-- strict thread matches above, loose matches on Subject: below --
2004-03-16 16:21 Lever, Charles
2004-03-16 17:05 ` Trond Myklebust
2004-03-16 19:42 ` Olaf Kirch
2004-03-16 17:19 Lever, Charles
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=20040316111149.GS25405@suse.de \
--to=okir@suse.de \
--cc=nfs@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.