From: Andrei Borzenkov <arvidjaar@gmail.com>
To: "Sébastien Luttringer" <seblu@seblu.net>,
linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Size reported differently between profiles
Date: Sun, 17 Jul 2016 06:21:48 +0300 [thread overview]
Message-ID: <578AF9CC.2060404@gmail.com> (raw)
In-Reply-To: <1468721359.19617.169.camel@seblu.net>
[-- Attachment #1: Type: text/plain, Size: 1823 bytes --]
17.07.2016 05:09, Sébastien Luttringer пишет:
> Hello,
>
> «btrfs fi usage» report size differently between single,RAID0,RAID1,RAID5,RAID6
> and RAID10.
>
> The test is done with 2 files of 1.4GiB each on 4x10GiB devices. I used balance
> to get size between profiles.
>
> Data,single: Size:4.00GiB, Used:2.85GiB
> /dev/sdb 1.00GiB
> /dev/sdc 1.00GiB
> /dev/sdd 1.00GiB
> /dev/sde 1.00GiB
>
> Data,RAID0: Size:8.00GiB, Used:2.85GiB
> /dev/sdb 2.00GiB
> /dev/sdc 2.00GiB
> /dev/sdd 2.00GiB
> /dev/sde 2.00GiB
>
> Data,RAID1: Size:4.00GiB, Used:2.85GiB
> /dev/sdb 2.00GiB
> /dev/sdc 2.00GiB
> /dev/sdd 2.00GiB
> /dev/sde 2.00GiB
>
> Data,RAID5: Size:6.00GiB, Used:2.85GiB
> /dev/sdb 2.00GiB
> /dev/sdc 2.00GiB
> /dev/sdd 2.00GiB
> /dev/sde 2.00GiB
>
> Data,RAID6: Size:6.00GiB, Used:2.85GiB
> /dev/sdb 3.00GiB
> /dev/sdc 3.00GiB
> /dev/sdd 3.00GiB
> /dev/sde 3.00GiB
>
> Data,RAID10: Size:4.00GiB, Used:2.85GiB
> /dev/sdb 1.00GiB
> /dev/sdc 1.00GiB
> /dev/sdd 1.00GiB
> /dev/sde 1.00GiB
>
> For single,RAID0,RAID10 profiles, the sum of device sizes is equal to
> total size. Like total size is the "byte allocated size" for all
> devices.
>
> For RAID1,RAID5,RAID6 profiles, sum of devices sizes is more than the
> total size. Looks like the redundancy was subtracted from the total.
> Like total size is the "profile size allocated".
>
> So, why RAID1 and RAID10 are reporting their sizes differently? This
> confuse me.
>
In your example only RAID10 is different. RAID1 shows 4GiB on 8GiB total
disks which matches "redundancy subtracted". But yes, I also wonder why
RAID10 does not respect it.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2016-07-17 3:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-17 2:09 Size reported differently between profiles Sébastien Luttringer
2016-07-17 3:21 ` Andrei Borzenkov [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=578AF9CC.2060404@gmail.com \
--to=arvidjaar@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=seblu@seblu.net \
/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).