Linux NFS development
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Michel Lespinasse <walken-Y93EPB1FQwg@public.gmane.org>
Cc: linux-nfs@vger.kernel.org
Subject: Re: NFS hangs with 2.6.25/2.6.26 despite server being reachable
Date: Wed, 16 Jul 2008 15:15:53 -0400	[thread overview]
Message-ID: <20080716191553.GG20298@fieldses.org> (raw)
In-Reply-To: <20080716054053.GE6159-Y93EPB1FQwg@public.gmane.org>

On Tue, Jul 15, 2008 at 10:40:53PM -0700, Michel Lespinasse wrote:
> I'm getting frequent NFS hangs when running 2.6.25 or 2.6.26 on my
> NFS clients, while 2.6.24 seems to work fine.
> 
> Here are some details about my configuration:
> 
> * The NFS server is a linux host (x86-64) running 2.6.22.19;
> 
> * I have two diskless clients using different hardware, one is an old
>   AMD K7 with intel pro/100 adapter, the other is x86-64 with on-board
>   intel e1000e networking.
> 
> * The clients boot from a small initrd and mount their rootfs using
>   NFS3 over TCP. The initial mounting is done with "nfsmount -o ro,nolock"
>   from the klibc-utils package.
> 
> * /etc/fstab in the clients describe the nfs root as having the nolock,noatime
>   options. The boot scripts (unmodified from my debian etch distro)
>   remount the root using these. In the end, /proc/mounts shows the rootfs as
>   using the following options:
>   When running 2.6.24 on the client:
>     rw,noatime,vers=3,rsize=131072,wsize=131072,hard,nointr,
>     nolock,proto=tcp,timeo=7,retrans=3,sec=sys
>   When running 2.6.26 on the client:
>     rw,noatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,nointr,
>     nolock,proto=tcp,timeo=7,retrans=3,sec=sys,mountproto=udp
> 
> * I often run suspend-to-ram on the clients, if I know they'll be unused
>   for a few hours.
> 
> The above setup works just fine when running 2.6.24 on the clients.
> 
> When running 2.6.25 on the clients, the rootfs often hangs after a
> suspend/resume cycle. This happens most often if the clients had been
> suspended for a while (say overnight, rather than just during dinner).
> By 'hangs' I mean the the clients show all symptoms that would be expected
> if the server was gone, i.e. processes can't access the filesystem,
> load goes to high values, machine becomes basically unusable. However,
> the clients are still pingable from the NFS server host, so I believe
> the network itself is fine. After 5-10 minutes of this, everything comes
> back to normal without any intervention on my part.
> 
> When running 2.6.26 on the clients, the same behavior is observed except that
> it never goes back to normal. Actually, I could not find any way to fix the
> clients without rebooting them.
> 
> I'm not sure what's going on. My best guess would be that something times
> out (possibly the TCP connection itself ?) and that the NFS client in 2.6.25
> and above takes a very long time before giving up and establishing a new
> connection with the server ??? I'm not sure if that makes any sense, and I
> was not able to collect hard evidence of that so far...
> 
> Any ideas about what might be going wrong and/or what additional information
> I should try to collect about the hangs ?

A sysrq-T trace showing where the clients were hung might help.  (So,
"echo T >/proc/sysrq-trigger", then look at the logs.)

If it were possible to get it down to a simple test case, then we'd
probably learn something from a git-bisect to figure out exactly when
the problem was first introduced.

--b.

  parent reply	other threads:[~2008-07-16 19:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-16  5:40 NFS hangs with 2.6.25/2.6.26 despite server being reachable Michel Lespinasse
     [not found] ` <20080716054053.GE6159-Y93EPB1FQwg@public.gmane.org>
2008-07-16 19:15   ` J. Bruce Fields [this message]
2008-07-18  6:04     ` Michel Lespinasse
     [not found]       ` <20080718060405.GD12135-Y93EPB1FQwg@public.gmane.org>
2008-07-18 19:07         ` J. Bruce Fields
2008-07-21  2:14         ` Michel Lespinasse
     [not found]           ` <20080721021408.GA7949-Y93EPB1FQwg@public.gmane.org>
2008-07-23 21:52             ` J. Bruce Fields
2008-07-24 10:03               ` Michel Lespinasse

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=20080716191553.GG20298@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=walken-Y93EPB1FQwg@public.gmane.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