linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Wendy Cheng <s.wendy.cheng@gmail.com>
Cc: Tristan Ball <tristanb@pronto.com.au>,
	"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: NFS Sync with External Journal
Date: Tue, 7 Jun 2011 19:23:14 -0400	[thread overview]
Message-ID: <20110607232313.GG13911@fieldses.org> (raw)
In-Reply-To: <BANLkTi=4ey0YpTtUwuVuRQz4_xYpt10wuw@mail.gmail.com>

On Mon, Jun 06, 2011 at 01:12:51PM -0700, Wendy Cheng wrote:
> You'll probably get better answer(s) from ext3 user mailing list
> .... it is more about how journaling works for the specific file
> system.

Yes, though leave linux-nfs on the cc: as I'd be interested what you
find out.

> In ext3 case, I believe "sync" forces data getting flushed to the file
> system *regardless* which journal mode is chosen. Using an external
> journal device, particularly on SSD,  does help but the performance
> gain is limited by the amount of data that needs to be written into
> the file system itself.

> > /etc/exports:
> > /plain          *(rw,async,no_subtree_check,no_root_squash)
> > /split          *(rw,async,no_subtree_check,no_root_squash) # (FS with external Journal)
> >
> > Client mounts were done simply with -o 'rw,rsize=32768,wsize=32768'
> >
> > Benchmark results:
> > Plain Ext3, data=ordered export=sync, write speed 56-62MB/sec
> > Split Ext3, data=journal export=sync, write speed = 46-50MB/sec
> >
> > For reference:
> > Plain Ext3, data=ordered export=async, write speed 111MB/sec
> > Split Ext3, data=journal export=async, write speed 110MB/sec

What exactly is your test?

For sufficiently large sequential writes, I wouldn't actually have
expected sync vs. async to make much difference: eventually you're
limited by the drive speed (I'm assuming your drive does ~60MB/s write
througput?).  And individual writes (for NFS v3 and higher) aren't
necessarily required to be synchronous.

A better test would be creating or destroying a bunch of small files, as
create and unlink are synchronous (the nfs server won't return, in the
sync case, before each create and unlink actually hits the disk).

--b.

  reply	other threads:[~2011-06-07 23:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-06 13:42 NFS Sync with External Journal Tristan Ball
2011-06-06 20:12 ` Wendy Cheng
2011-06-07 23:23   ` J. Bruce Fields [this message]
2011-06-08  3:57     ` Tristan Ball
2011-06-08 17:33       ` Wendy Cheng
2011-06-08 18:08 ` bpm

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=20110607232313.GG13911@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=s.wendy.cheng@gmail.com \
    --cc=tristanb@pronto.com.au \
    /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).