public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Peng Yu <pengyu.ut@gmail.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: 30 time speed difference between using NFS and without using NFS
Date: Mon, 30 Aug 2010 13:09:24 -0400	[thread overview]
Message-ID: <20100830170923.GA17103@fieldses.org> (raw)
In-Reply-To: <AANLkTimog6uTdsxzFeA0YY+HK6gtcwEGXaFDJs+Aorm0@mail.gmail.com>

On Fri, Aug 27, 2010 at 06:08:25PM -0500, Peng Yu wrote:
> Hi,
> 
> I use the following command to search for some directory.
> 
> find -L some_dir -type d -name some_name
> 
> If I'm on the machine that has some_dir locally, the run time is
> real	0m0.199s
> user	0m0.048s
> sys	0m0.140s
> 
> If I'm on another machine that sees the same directory by NFS (NFS3).
> the run time is
> real	0m6.509s
> user	0m0.090s
> sys	0m1.380s
> 
> There are 30 time speed difference. Is this normal? Is there any NFS
> parameter that I should tune to make the latter faster?

How many directories are there in some_dir?  What's the round trip time
(e.g. as reported by ping) to the server?  If you repeate the find
immediately, is it faster?

This can indeed by much slower if it requires revalidating the cached
attributes of each file.

--b.

  reply	other threads:[~2010-08-30 17:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-27 23:08 30 time speed difference between using NFS and without using NFS Peng Yu
2010-08-30 17:09 ` J. Bruce Fields [this message]
2010-08-30 21:39   ` Peng Yu
2010-08-31 16:23     ` J. Bruce Fields
2010-08-31 21:27       ` Peng Yu
2010-09-01  1:15         ` J. Bruce Fields

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=20100830170923.GA17103@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=pengyu.ut@gmail.com \
    /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