linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Al Boldi <a1426z@gawab.com>
Cc: neilb@suse.de, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: Massive slowdown when re-querying large nfs dir
Date: Thu, 8 Nov 2007 01:04:36 -0800	[thread overview]
Message-ID: <20071108010436.e5ad5036.akpm@linux-foundation.org> (raw)
In-Reply-To: <200711081044.35699.a1426z@gawab.com>

> On Thu, 8 Nov 2007 10:44:35 +0300 Al Boldi <a1426z@gawab.com> wrote:
> Andrew Morton wrote:
> > > > I would suggest getting a 'tcpdump -s0' trace and seeing (with
> > > > wireshark) what is different between the various cases.
> > >
> > > Thanks Neil for looking into this.  Your suggestion has already been
> > > answered in a previous post, where the difference has been attributed to
> > > "ls -l" inducing lookup for the first try, which is fast, and getattr
> > > for later tries, which is super-slow.
> > >
> > > Now it's easy to blame the userland rpc.nfs.V2 server for this, but
> > > what's not clear is how come 2.4.31 handles getattr faster than 2.6.23?
> >
> > We broke 2.6?  It'd be interesting to run the ls in an infinite loop on
> > the client them start poking at the server.  Is the 2.6 server doing
> > physical IO?  Is the 2.6 server consuming more system time?  etc.  A basic
> > `vmstat 1' trace for both 2.4 and 2.6 would be a starting point.
> >
> > Could be that there's some additional latency caused by networking
> > changes, too.  I expect the tcpdump/wireshark/etc traces would have
> > sufficient resolution for us to be able to see that.
> 
> The problem turns out to be "tune2fs -O dir_index".
> Removing that feature resolves the big slowdown.

Doh.  Well worked-out.

> Does 2.4.31 support this feature?

No.  This explains it.

  reply	other threads:[~2007-11-08  9:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-05  4:58 Massive slowdown when re-querying large nfs dir Al Boldi
2007-11-04 13:36 ` Matthew Wilcox
2007-11-04 16:03   ` Al Boldi
2007-11-06 11:28 ` Al Boldi
2007-11-07  6:19   ` Andrew Morton
2007-11-07  7:28     ` Neil Brown
2007-11-07  9:36       ` Al Boldi
2007-11-07 17:05         ` Andrew Morton
2007-11-08  7:44           ` Al Boldi
2007-11-08  9:04             ` Andrew Morton [this message]
2007-11-07 21:58         ` Neil Brown
2007-11-07 22:01           ` Massive slowdown when re-querying large nfs dir - CORRECTION Neil Brown

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=20071108010436.e5ad5036.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=a1426z@gawab.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@suse.de \
    /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).