public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Theodore Ts'o" <tytso@mit.edu>
To: Daniel Phillips <daniel.raymond.phillips@gmail.com>
Cc: Dave Chinner <david@fromorbit.com>,
	linux-kernel@vger.kernel.org, tux3@tux3.org,
	linux-fsdevel@vger.kernel.org
Subject: Re: Tux3 Report: Faster than tmpfs, what?
Date: Sat, 11 May 2013 17:26:08 -0400	[thread overview]
Message-ID: <20130511212608.GA26298@thunk.org> (raw)
In-Reply-To: <CAEsagEism-SQB9LRC+EuPLoBiFOEHc0peLjh3cDxwrNe3Jz=2w@mail.gmail.com>

On Fri, May 10, 2013 at 11:12:27PM -0700, Daniel Phillips wrote:
> Hi Dave,
> 
> Thanks for the catch - I should indeed have noted that "modified
> dbench" was used for this benchmark, thus amplifying Tux3's advantage
> in delete performance.

Dropping fsync() does a lot more than "amplify Tux3's advantage in
delete performace".  Since fsync(2) is defined as not returning until
the data written to the file descriptor is flushed out to stable
storage --- so it is guaranteed to be seen after a system crash --- it
means that the foreground application must not continue until the data
is written by Tux3's back-end.

So it also means that any advantage of decoupling the front/back end
is nullified, since fsync(2) requires a temporal coupling.  In fact,
if there is any delays introdued between when the front-end sends the
fsync request, and when the back-end finishes writing the data and
then communicates this back to the front-end --- i.e., caused by
schedular latencies, this may end up being a disadvantage compared to
more traditional file system designs.

Like many things in file system design, there are tradeoffs.  It's
perhaps more quseful when having these discussions to be clear what
you are trading off for what; in this case, the front/back design may
be good for somethings, and less good for others, such as mail server
workloads where fsync(2) semantics is extremely important for
application correctness.

Best regards,

					- Ted

  parent reply	other threads:[~2013-05-11 21:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-07 23:24 Tux3 Report: Faster than tmpfs, what? Daniel Phillips
2013-05-10  4:50 ` Dave Chinner
2013-05-10  5:06   ` Christian Stroetmann
2013-05-10  5:47   ` OGAWA Hirofumi
2013-05-14  6:34     ` Dave Chinner
2013-05-14  7:59       ` OGAWA Hirofumi
2013-05-11  6:12   ` Daniel Phillips
2013-05-11 18:35     ` james northrup
2013-05-12  4:39       ` Daniel Phillips
2013-05-11 21:26     ` Theodore Ts'o [this message]
2013-05-12  4:28       ` Daniel Phillips
2013-05-13 23:22       ` Daniel Phillips
     [not found]         ` <35557711-A88D-4226-B3C6-3787573F5403@dilger.ca>
2013-05-14  6:25           ` Daniel Phillips
2013-05-15 17:10             ` Andreas Dilger

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=20130511212608.GA26298@thunk.org \
    --to=tytso@mit.edu \
    --cc=daniel.raymond.phillips@gmail.com \
    --cc=david@fromorbit.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tux3@tux3.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