linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Busheman <markbusheman@gmail.com>
To: Theodore Tso <tytso@mit.edu>
Cc: linux-ext4@vger.kernel.org
Subject: Re: Does ext4 send FUA to flush disk cache
Date: Mon, 11 Apr 2011 11:23:23 -0700	[thread overview]
Message-ID: <BANLkTi=F9c7dU9Rpt3jy5VcRtgvDB5a37Q@mail.gmail.com> (raw)
In-Reply-To: <DE099CBA-6478-4651-B3E5-F406D0C11C3D@mit.edu>

Thanks Ted for replying.

>> FUA doesn't cause a cache flush.
Thanks for correcting. Yes FUA does not flush cache. When the FUA bit
is set in the write
command, the drive make sure that the data goes to platters and not to
be put into its
cache for latter writes.

>> Ext4 does send cache flush commands, or barriers, to make sure the data written to disk
>> is flushed all the way down to the disk platters on transaction commits.
 I have few questions on this and need help:
a. To achieve the above, is any specific options that need to be used
while mounting?
b. Are the above mentioned things done only for data=journal or for
other modes such as
data=ordered and writeback?
c. Are they done for metadata, journal and data writes?
d. Can I know what are the commands sent to the drives to do the cache
flush commands
or barriers? Would like to find if the drive support the commands?
e. Is the above true also for ext3 - I posted a similar question to
ext3 forum and have got no
response so far?

Cheers
Mark

On Sun, Apr 10, 2011 at 5:17 AM, Theodore Tso <tytso@mit.edu> wrote:
>
> On Apr 8, 2011, at 6:02 PM, Mark Busheman wrote:
>
>> I plan to use data=journal option with ext4. Would like to know if
>> ext4 send FUA (Forced Unit Access)
>> to flush the disk cache?
>
> FUA doesn't cause a cache flush.   Ext4 does send cache flush commands, or barriers, to make sure the data written to disk is flushed all the way down to the disk platters on transaction commits.
>
> -- Ted
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-04-11 20:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-08 22:02 Does ext4 send FUA to flush disk cache Mark Busheman
2011-04-10 12:17 ` Theodore Tso
2011-04-11 18:23   ` Mark Busheman [this message]
2011-04-11 18:44     ` Ted Ts'o
2011-04-11 21:18       ` Mark Busheman
2011-04-11 23:16   ` Christoph Hellwig
2011-04-12  2:14     ` Ted Ts'o
2011-04-12  4:40       ` Christoph Hellwig

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='BANLkTi=F9c7dU9Rpt3jy5VcRtgvDB5a37Q@mail.gmail.com' \
    --to=markbusheman@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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).