* Size reported differently between profiles
@ 2016-07-17 2:09 Sébastien Luttringer
2016-07-17 3:21 ` Andrei Borzenkov
0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Luttringer @ 2016-07-17 2:09 UTC (permalink / raw)
To: linux-btrfs
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Size reported differently between profiles
2016-07-17 2:09 Size reported differently between profiles Sébastien Luttringer
@ 2016-07-17 3:21 ` Andrei Borzenkov
0 siblings, 0 replies; 2+ messages in thread
From: Andrei Borzenkov @ 2016-07-17 3:21 UTC (permalink / raw)
To: Sébastien Luttringer, linux-btrfs
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-17 3:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-17 2:09 Size reported differently between profiles Sébastien Luttringer
2016-07-17 3:21 ` Andrei Borzenkov
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).