From: Tao Ma <tm@tao.ma>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] RFC: OCFS2 heartbeat improvements
Date: Fri, 24 Aug 2012 09:42:17 +0800 [thread overview]
Message-ID: <5036DBF9.5030500@tao.ma> (raw)
In-Reply-To: <CAEeiSHUNXAHcRko4zYePSy=Qm3xG0haVd0Puj3oWXS5Mq8K7ZQ@mail.gmail.com>
On 08/24/2012 01:33 AM, Sunil Mushran wrote:
> On Wed, Aug 22, 2012 at 8:44 PM, Tao Ma <tm at tao.ma <mailto:tm@tao.ma>>
> wrote:
>
> I guess the final solution will be WRITE_FUA, and I see btrfs uses it to
> write out the superblock. It will be handled differently by the
> underlying block layer so that it will not be in the elevator queue. It
> should work but I am not sure whether we need to be so aggressive. Maybe
> some test will show.
>
>
> FUA is an overkill for the heartbeat data because we don't care if that data
> hits the platter or not. It can stay in the device's volatile cache.
> Infact, staying
> in the cache, and not hitting the platter, is better.
yes, but it has the benefit that the elevator will not try to add it in
the queue and avoid any possible latency from the elevator. And my
another concern is that if ocfs2 has some high-end shared storage, it
should optimize the FUA command to be very fast and even within its
cache if the storage can survive the power outage. Having said that, it
may hurt if the backend storage doesn't implement FUA fast enough. So
maybe we can add a new parameter so that the user can decide what type
of heartbeat write he/she needs.
Thanks
Tao
prev parent reply other threads:[~2012-08-24 1:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 14:17 [Ocfs2-devel] RFC: OCFS2 heartbeat improvements Jie Liu
2012-08-22 17:13 ` srinivas eeda
2012-08-22 17:18 ` Sunil Mushran
2012-08-23 2:08 ` Jie Liu
2012-08-23 2:00 ` Jie Liu
2012-08-23 3:44 ` Tao Ma
2012-08-23 4:01 ` Jie Liu
2012-08-23 17:25 ` Sunil Mushran
2012-08-24 4:33 ` Jie Liu
2012-08-23 17:33 ` Sunil Mushran
2012-08-24 1:42 ` Tao Ma [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=5036DBF9.5030500@tao.ma \
--to=tm@tao.ma \
--cc=ocfs2-devel@oss.oracle.com \
/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.