Linux NFS development
 help / color / mirror / Atom feed
From: Haakon Riiser <haakon.riiser@fys.uio.no>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: nfs@lists.sourceforge.net
Subject: Re: "Server not responding" after periods of client inactivity
Date: Sat, 30 Jul 2005 16:32:16 +0200	[thread overview]
Message-ID: <20050730143216.GA2339@fox> (raw)
In-Reply-To: <1122732943.8248.13.camel@lade.trondhjem.org>

Trond,

> If the server drops the connection, then the client will wait 15 seconds
> before retrying. The reason for this is that client has to assume that
> the server is disconnecting due to congestion issues.
> Note that if congestion really is an issue, your Linux server should
> normally send an error message to the effect of "too many open TCP
> sockets, consider increasing the number of nfsd threads" to your syslog.

Congestion is almost definitely not the case here, since the NFS
server is located in my own home, and is typically only used by one
client at a time.  During these timeouts, it isn't doing anything.
This is why I first thought that the problem was that the server
disks had spun down to save power.

Btw, one thing I haven't tried yet is upgrading to NFSv4.  Do you
think that could help?

> You can fiddle with RPC_REESTABLISH_TIMEOUT if you want to change the 15
> second delay, but I wouldn't recommend this unless you are sure you know
> what you are doing. (FYI, the fixed timeout is, BTW, soon due to be
> replaced with an exponential backoff-based timeout.)
> 
> Otherwise, you should note that the client too will attempt to drop the
> connection after 5 minutes of idle activity on the socket. That should
> normally not lead to a 15 second wait, though.
> If the client fails to disconnect the idle connection, then the server
> will do so after 6 minutes (i.e. ~ 1 minute after the client timeout
> should have occurred).

Hmm, what did you make of the result I got with tcpdump/Ethereal?
(Reposted below for convenience.) It looks like the problem is on
the server side.

  Source  Time  Packets
  ------  ----  -------
  client  0.00  V3 ACCESS Call, FH:0x02120000
  client  0.10  [Retransmission of #1] V3 ACCESS Call, FH:0x02120000
  client  0.31  [Retransmission of #1] V3 ACCESS Call, FH:0x02120000
  client  0.71  [Retransmission of #1] V3 ACCESS Call, FH:0x02120000
  client  1.53  [Retransmission of #1] V3 ACCESS Call, FH:0x02120000
  client  3.16  [Retransmission of #1] V3 ACCESS Call, FH:0x02120000
  client  6.42  [Retransmission of #1] V3 ACCESS Call, FH:0x02120000
  client  7.12  [Retransmission of #1] V3 ACCESS Call, FH:0x02120000
  client  8.52  [Retransmission of #1] V3 ACCESS Call, FH:0x02120000
  client 11.32  [Retransmission of #1] V3 ACCESS Call, FH:0x02120000
  server 15.30  V3 ACCESS Reply

-- 
 Haakon


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2005-07-30 14:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-14 21:25 "Server not responding" after periods of client inactivity Haakon Riiser
2005-07-30 13:10 ` Haakon Riiser
2005-07-30 14:15   ` Trond Myklebust
2005-07-30 14:32     ` Haakon Riiser [this message]
2005-07-30 14:55       ` Trond Myklebust
2005-08-09 19:06         ` Haakon Riiser
2005-08-09 19:14           ` Trond Myklebust
2005-08-09 19:22             ` Haakon Riiser
2005-08-09 20:32             ` Haakon Riiser
2005-08-09 20:59               ` Trond Myklebust
2005-08-09 22:24                 ` Haakon Riiser
  -- strict thread matches above, loose matches on Subject: below --
2005-07-14 12:34 Haakon Riiser

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=20050730143216.GA2339@fox \
    --to=haakon.riiser@fys.uio.no \
    --cc=nfs@lists.sourceforge.net \
    --cc=trond.myklebust@fys.uio.no \
    /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