From: "Amir G." <amir73il@users.sourceforge.net>
To: tytso@mit.edu
Cc: Ric Wheeler <rwheeler@redhat.com>, Andi Kleen <andi@halobates.de>,
linux-ext4@vger.kernel.org
Subject: Re: Next3 - COW of data blocks
Date: Sat, 15 May 2010 08:36:04 +0200 [thread overview]
Message-ID: <AANLkTilD-9GKI6SRF-ZmzkoSRW2YfvPk80Jyt0dHuErk@mail.gmail.com> (raw)
On Sat, May 8, 2010 at 9:40 PM, Amir G. <amir73il@users.sourceforge.net> wrote:
> On Sat, May 8, 2010 at 7:25 PM, <tytso@mit.edu> wrote:
>>
>> Technically speaking, it's possible to do it both way, yes? I'm not
>> sure why you consider this such a important design decision. We can
>> even play games where for some files we might do copy-on-write, and
>> for some files, we do move-on-write. It's always possible to check
>> the COW bitmaps to decide what had happened.
>>
>
> Definitely yes! I never thought it would really have to come down to a
> "decision",
> because there is a trade-off at hand.
> Even in Next3, without extents, it makes sense to have a choice of
> write performance vs. fragmentation per file.
> The few applications that use random in-place write (db, virtual disk)
> would probably want to avoid the fragmentation.
>
There is another challenge concerning COW of non-journaled data blocks.
With COW of metadata blocks, the order of I/O is guarantied to
preserve snapshot consistency after crash,
because snapshot data blocks (the copied block) are ordered and both
snapshot metadata blocks and original COWed metadata block are
journaled in the same transaction.
With move-on-write of non-journaled data blocks, the entire move block
operation is journaled, the snapshot data block is
a moved block, so has no I/O at all, and the new data block is
whatever (ordered,writeback).
If Next3 were to implement COW of non-journaled data blocks (i.e.,
ordered or writeback) to avoid the file fragmentation,
how can it assure the correct order of I/O between the COWed data
block and the snapshot copied block without using synchronic I/O?
Can someone propose a solution to that challenge?
Amir.
--
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:[~2010-05-15 6:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=AANLkTilD-9GKI6SRF-ZmzkoSRW2YfvPk80Jyt0dHuErk@mail.gmail.com \
--to=amir73il@users.sourceforge.net \
--cc=andi@halobates.de \
--cc=linux-ext4@vger.kernel.org \
--cc=rwheeler@redhat.com \
--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).