All of lore.kernel.org
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: Alexey Skidanov <Alexey.Skidanov@sandisk.com>
Cc: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	"alexey.skidanov@gmail.com" <alexey.skidanov@gmail.com>
Subject: Re: fsync and journal_async_commit mount options
Date: Sun, 16 Aug 2015 08:24:54 -0400	[thread overview]
Message-ID: <20150816122454.GB3825@thunk.org> (raw)
In-Reply-To: <CF2184B79FF73642B463E092E85766BF05474CD4@SACMBXIP02.sdcorp.global.sandisk.com>

On Sun, Aug 16, 2015 at 11:42:23AM +0000, Alexey Skidanov wrote:
> The barrier is a mount option imposing some ordering on journaling
> transactions - journaling content and journaling commit. So why the
> flush request is issued only if the journal ordering is imposed by
> barrier option?

The barrier option is on by default.  Users have to explicitly turn
off the barrier option using the nobarrier mount option.  The main
reason why you might want to turn off the flush request is if you have
a UPS and are confident that the you don't need to worry about power
drop.  (For example, if you have a data center with say, system or
rack level battery backups, plus a diesel generator, maybe you might
be willing make the engineering trade off to disable the barrier
option.)

I could imagine a scheme where if you had a mobile handset without a
removable battery, the handset manufacturer could implement a power
fail interrupt so that when the battery drops below 5 minutes worth of
runtime, the kernel shuts down the system cleanly which includes an
explicit flush before the power down.

Cheers,

					- Ted

  reply	other threads:[~2015-08-16 12:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-16 11:42 fsync and journal_async_commit mount options Alexey Skidanov
2015-08-16 12:24 ` Theodore Ts'o [this message]
2015-08-18  9:59   ` Alexey Skidanov
2015-08-18 16:25     ` tytso
  -- strict thread matches above, loose matches on Subject: below --
2015-08-13 13:47 Alexey Skidanov

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=20150816122454.GB3825@thunk.org \
    --to=tytso@mit.edu \
    --cc=Alexey.Skidanov@sandisk.com \
    --cc=alexey.skidanov@gmail.com \
    --cc=linux-fsdevel@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.