From: Neil Brown <neilb@suse.de>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Al Boldi <a1426z@gawab.com>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Massive slowdown when re-querying large nfs dir
Date: Wed, 7 Nov 2007 18:28:55 +1100 [thread overview]
Message-ID: <18225.26935.146395.366451@notabene.brown> (raw)
In-Reply-To: message from Andrew Morton on Tuesday November 6
On Tuesday November 6, akpm@linux-foundation.org wrote:
> > On Tue, 6 Nov 2007 14:28:11 +0300 Al Boldi <a1426z@gawab.com> wrote:
> > Al Boldi wrote:
> > > There is a massive (3-18x) slowdown when re-querying a large nfs dir (2k+
> > > entries) using a simple ls -l.
> > >
> > > On 2.6.23 client and server running userland rpc.nfs.V2:
> > > first try: time -p ls -l <2k+ entry dir> in ~2.5sec
> > > more tries: time -p ls -l <2k+ entry dir> in ~8sec
> > >
> > > first try: time -p ls -l <5k+ entry dir> in ~9sec
> > > more tries: time -p ls -l <5k+ entry dir> in ~180sec
> > >
> > > On 2.6.23 client and 2.4.31 server running userland rpc.nfs.V2:
> > > first try: time -p ls -l <2k+ entry dir> in ~2.5sec
> > > more tries: time -p ls -l <2k+ entry dir> in ~7sec
> > >
> > > first try: time -p ls -l <5k+ entry dir> in ~8sec
> > > more tries: time -p ls -l <5k+ entry dir> in ~43sec
> > >
> > > Remounting the nfs-dir on the client resets the problem.
> > >
> > > Any ideas?
> >
> > Ok, I played some more with this, and it turns out that nfsV3 is a lot
> > faster. But, this does not explain why the 2.4.31 kernel is still over
> > 4-times faster than 2.6.23.
> >
> > Can anybody explain what's going on?
> >
>
> Sure, Neil can! ;)
Nuh.
He said "userland rpc.nfs.Vx". I only do "kernel-land NFS". In these
days of high specialisation, each line of code is owned by a different
person, and finding the right person is hard....
I would suggest getting a 'tcpdump -s0' trace and seeing (with
wireshark) what is different between the various cases.
NeilBrown
next prev parent reply other threads:[~2007-11-07 7:29 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 [this message]
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
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=18225.26935.146395.366451@notabene.brown \
--to=neilb@suse.de \
--cc=a1426z@gawab.com \
--cc=akpm@linux-foundation.org \
--cc=linux-fsdevel@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).