Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Duncan <j.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Fw: Heavy nocow'd VM image fragmentation
Date: Sat, 25 Oct 2014 04:03:38 -0700	[thread overview]
Message-ID: <20141025040338.05963ed9@ws> (raw)



Begin forwarded message (forgot to send to list):

Date: Sat, 25 Oct 2014 03:57:41 -0700
From: Duncan <1i5t5.duncan@cox.net>
To: Marc MERLIN <marc@merlins.org>
Subject: Re: Heavy nocow'd VM image fragmentation


On Fri, 24 Oct 2014 21:48:56 -0700
Marc MERLIN <marc@merlins.org> wrote:

> On Oct 25, 2014 11:28 AM, "Duncan" <1i5t5.duncan@cox.net> wrote:
> 
> > Yes, but the OP said he hadn't snapshotted since creating the file,
> > and MM's a regular that actually wrote much of the wiki
> > documentation on raid56 modes, so he better know about the
> > snapshotting problem too.
> 
> Yes and no. I use btrfs send receive, so I have to use snapshots on
> the subvolume my VM file is on.

That kinds screws things, since you can delete the snapshots afterward,
but if anything changed while it was there it still forces a 1cow on
it.  As long as the send doesn't take "forever" the time in question
can be reasonably short, but if the VM must remain active over that
period, there's likely to still be /some/ effect.

The only thing you can do about that, I guess, is periodically defrag
them, but of course without snapshot-aware-defrag that breaks any
snapshot sharing, multiplying the space required.  And with
send/receive requiring a reference snapshot for incrementals, there's
the snapshot, thus space-doubling on anything actually defragged is
unfortunately a given. =:^(

> Can you reply to this post to show my reply to others since my
> Android post to the list will get rejected?

Dug out of the trash here too due to the HTML, but OK... 

-- 
Duncan - HTML messages treated as spam
"They that can give up essential liberty to obtain a little
temporary safety, deserve neither liberty nor safety." --
Benjamin Franklin

                 reply	other threads:[~2014-10-25 19:16 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=20141025040338.05963ed9@ws \
    --to=j.duncan@cox.net \
    --cc=linux-btrfs@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox