From: Chris Mason <chris.mason@oracle.com>
To: Sage Weil <sage@newdream.net>
Cc: Yan Zheng <yanzheng@21cn.com>, linux-btrfs@vger.kernel.org
Subject: Re: inode data not getting included in commits?
Date: Fri, 19 Dec 2008 19:11:40 -0500 [thread overview]
Message-ID: <1229731900.5033.1.camel@think.oraclecorp.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0812191119110.29416@cobra.newdream.net>
On Fri, 2008-12-19 at 12:08 -0800, Sage Weil wrote:
[ trigger data=ordered flush at commit time ]
>
> > A third option is a different type of xattr operation that doesn't go to
> > disk until the metadata updates done at IO end time.
> >
> > >From a performance point of view, it'll be much faster than slowing down
> > commit with data writes.
> >
> > Can that work for you?
>
> I suspect not, since multiple files are involved. It's usually something
> like
>
> write A
> setxattr A
> write B
> setxattr C
>
> and all need to be committed atomically. The model really is a bundle of
> arbitrary operations that commit atomically.
>
> Slower commit times aren't as much of a concern because this is on the
> storage backend, behind client caches and so forth. I think it's
> a reasonable price to pay for the stronger consistency.
>
> Hopefully it's not throwing too big a wrench into the data=ordered
> machinery? It sort of looks like this is already what you get when taking
> a snapshot (I see the call to wait_ordered_extnets in commit_transaction
> when snaps_pending).
If we make it optional, its fine by me to added a data=ordered flush at
commit time.
-chris
prev parent reply other threads:[~2008-12-20 0:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-19 0:22 inode data not getting included in commits? Sage Weil
2008-12-19 1:26 ` Yan Zheng
2008-12-19 5:21 ` Sage Weil
2008-12-19 14:12 ` Chris Mason
2008-12-19 18:48 ` Sage Weil
2008-12-19 19:07 ` Chris Mason
2008-12-19 20:08 ` Sage Weil
2008-12-20 0:11 ` Chris Mason [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=1229731900.5033.1.camel@think.oraclecorp.com \
--to=chris.mason@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=sage@newdream.net \
--cc=yanzheng@21cn.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.