linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Sébastien Luttringer" <seblu@seblu.net>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Size reported differently between profiles
Date: Sun, 17 Jul 2016 04:09:19 +0200	[thread overview]
Message-ID: <1468721359.19617.169.camel@seblu.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]

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.

Cheers,

-- 
Sébastien "Seblu" Luttringer
https://seblu.net | Twitter: @seblu42
GPG: 0x2072D77A

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

             reply	other threads:[~2016-07-17  2:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-17  2:09 Sébastien Luttringer [this message]
2016-07-17  3:21 ` Size reported differently between profiles Andrei Borzenkov

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=1468721359.19617.169.camel@seblu.net \
    --to=seblu@seblu.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).