linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: System completely unresponsive after `btrfs balance start -dconvert=raid0 /` and `btrfs fi show /`
Date: Thu, 15 Oct 2015 07:59:21 +0000 (UTC)	[thread overview]
Message-ID: <pan$9a17e$32c179cf$a587598d$f4fafcb8@cox.net> (raw)
In-Reply-To: 20151015043927.GC4400@hungrycats.org

Zygo Blaxell posted on Thu, 15 Oct 2015 00:39:27 -0400 as excerpted:

> As others have pointed out, the raid0 allocator has a 2-disk-minimum
> constraint, so any difference in size between the largest and
> second-largest disk is unusable.  In your case that's 73% of the raw
> space.
> 
> If the two smaller disks were almost full (no space unallocated in
> 'btrfs fi usage') before you converted to raid0, then immediately after
> starting a conversion to raid0 you have no space left _at all_.  This is
> because the space you previously had under some other data profile is no
> longer considered "free" even if it isn't in use.  All future
> allocations must be raid0, starting immediately, but no space is
> available for raid0 data chunks.
> 
> This will cause some symptoms like huge write latency (it will not take
> seconds or minutes, but *hours* to write anything to the disk) and
> insanely high CPU usage.

Very nice analysis.  The implications hadn't occurred to me, but you 
spell them out in the stark terms the reality of the situation dictates, 
along with offering a sane way out.

Thanks.  I'll have to keep this in mind for the next time something like 
this comes up.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


      reply	other threads:[~2015-10-15  7:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-13 21:21 System completely unresponsive after `btrfs balance start -dconvert=raid0 /` and `btrfs fi show /` Carmine Paolino
2015-10-14  5:08 ` Duncan
2015-10-14  9:13   ` Hugo Mills
2015-10-14 13:12     ` Austin S Hemmelgarn
2015-10-14 21:09     ` Duncan
2015-10-15  4:39 ` Zygo Blaxell
2015-10-15  7:59   ` Duncan [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='pan$9a17e$32c179cf$a587598d$f4fafcb8@cox.net' \
    --to=1i5t5.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;
as well as URLs for NNTP newsgroup(s).