All of lore.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Keith Edmunds <kae@midnighthax.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: NFS access slow
Date: Tue, 18 Dec 2012 15:37:26 -0500	[thread overview]
Message-ID: <20121218203726.GA15006@fieldses.org> (raw)
In-Reply-To: <20121218194251.5bf674ff@ws.the.cage>

On Tue, Dec 18, 2012 at 07:42:51PM +0000, Keith Edmunds wrote:
> > What are your disks?
> 
> They are Enterprise Nearline 6Gb/s SAS drives in an Infortrend disk array.
> 
> >  How exactly are you getting those numbers?
> > (Literally, step-by-step, what commands are you running?)
> 
> Using postmark:
> 
> pm> set location /mnt/tmp
> pm> set size 10000 10000000
> pm> run
> 
> The only difference is the 'set location' line, which points to either the
> NFS mountpoint or the local mountpoint.

Note that NFS requires operations such as file creation and removal to
be synchronous (for reboot/crash-recovery reasons).  So e.g. if postmark
is single threaded (I think it is), then the client has to wait for the
server to respond to a file create before proceeding, and the server has
to wait for the create to hit disk before responding.

Depending on exactly how postmark calculates those bandwidth numbers
that could have a big effect.

If your array has a battery-backed cache that should help.

> A test using dd ("dd if=/dev/zero of=/mnt/tmp bs=1M count=8192") gave a
> difference of about five times faster for direct access versus access via
> NFS.

To make that an apples-to-apples comparison you should include the
time to sync after the dd in both cases.  (Though if your server doesn't
have much memory that might not make a big difference.)

> > What kernel version?
> 
> 3.2
> 
> > Note loopback-mounts (client and server on same machine) aren't really
> > fully supported.
> 
> OK, I wasn't aware of that. We were only testing that way to try to
> eliminate switches, cables, etc. I've just run a test from another server,
> both connected via 10G links, and I'm getting a read speed of just under
> 20BM/s and a write speed of 52MB/s.

Have you tested the network speed?  (E.g. with iperf.)

--b.

      parent reply	other threads:[~2012-12-18 20:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-18 15:52 NFS access slow Keith Edmunds
2012-12-18 18:50 ` J. Bruce Fields
2012-12-18 19:42   ` Keith Edmunds
2012-12-18 20:34     ` Jim Rees
2012-12-18 20:37     ` J. Bruce Fields [this message]

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=20121218203726.GA15006@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=kae@midnighthax.com \
    --cc=linux-nfs@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.