Skip to contentSkip to conversation

Btrfs-progs: Update man page for mixed data+metadata option.

PATCH Mitch Harder 6 participants 12 messages Nov 10, 2010 – Nov 15, 2010 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Update the mkfs.btrfs man page for the -M option to mix data and metadata chunks.

---
 man/mkfs.btrfs.8.in |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
man/mkfs.btrfs.8.in +5 -0
index 1e14c6c..c23dddc 100644
@@ -9,6 +9,7 @@ mkfs.btrfs \- create an btrfs filesystem
 [ \fB \-l\fP\fI leafsize\fP ]
 [ \fB \-L\fP\fI label\fP ]
 [ \fB \-m\fP\fI metadata profile\fP ]
+[ \fB \-M\fP\fI mixed data+metadata\fP ]
 [ \fB \-n\fP\fI nodesize\fP ]
 [ \fB \-s\fP\fI sectorsize\fP ]
 [ \fB \-h\fP ]
@@ -45,6 +46,10 @@ Specify a label for the filesystem.
 Specify how metadata must be spanned across the devices specified. Valid
 values are raid0, raid1, raid10 or single.
 .TP
+\fB\-M\fR, \fB\-\-mixed\fR
+Mix data and metadata chunks together for more efficient space 
+utilization.
+.TP
 \fB\-n\fR, \fB\-\-nodesize \fIsize\fR
 Specify the nodesize. By default the value is set to the pagesize.
 .TP
Signature · 1 line
1.7.2.2
#1 lore raw
Quoted 33 lines · Mitch Harder

Update the mkfs.btrfs man page for the -M option to mix data and metadata chunks.

---
 man/mkfs.btrfs.8.in |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
man/mkfs.btrfs.8.in +5 -0
index 1e14c6c..c23dddc 100644
@@ -9,6 +9,7 @@ mkfs.btrfs \- create an btrfs filesystem
 [ \fB \-l\fP\fI leafsize\fP ]
 [ \fB \-L\fP\fI label\fP ]
 [ \fB \-m\fP\fI metadata profile\fP ]
+[ \fB \-M\fP\fI mixed data+metadata\fP ]
 [ \fB \-n\fP\fI nodesize\fP ]
 [ \fB \-s\fP\fI sectorsize\fP ]
 [ \fB \-h\fP ]
@@ -45,6 +46,10 @@ Specify a label for the filesystem.
 Specify how metadata must be spanned across the devices specified. Valid
 values are raid0, raid1, raid10 or single.
 .TP
+\fB\-M\fR, \fB\-\-mixed\fR
+Mix data and metadata chunks together for more efficient space 
+utilization.
+.TP
 \fB\-n\fR, \fB\-\-nodesize \fIsize\fR
 Specify the nodesize. By default the value is set to the pagesize.
 .TP
Signature · 1 line
1.7.2.2

Let's mention that it's for smaller filesystems since it has a significant performance impact when using mixed block groups on larger filesystems. Thanks,

Josef

#2 lore raw
Quoted 9 lines · Josef Bacik
Quoted 8 lines · Mitch Harder

Update the mkfs.btrfs man page for the -M option to mix data and metadata chunks.

---
=A0man/mkfs.btrfs.8.in | =A0 =A05 +++++ =A01 files changed, 5 insertions(+), 0 deletions(-)

Quoted 14 lines
Quoted 13 lines
man/mkfs.btrfs.8.in +0 -0
index 1e14c6c..c23dddc 100644
@@ -9,6 +9,7 @@ mkfs.btrfs \- create an btrfs filesystem

=A0[ \fB \-l\fP\fI leafsize\fP ]
=A0[ \fB \-L\fP\fI label\fP ]
=A0[ \fB \-m\fP\fI metadata profile\fP ]
+[ \fB \-M\fP\fI mixed data+metadata\fP ]
=A0[ \fB \-n\fP\fI nodesize\fP ]
=A0[ \fB \-s\fP\fI sectorsize\fP ]
=A0[ \fB \-h\fP ]

man/mkfs.btrfs.8.in +0 -0
@@ -45,6 +46,10 @@ Specify a label for the filesystem.
Quoted 1 line

=A0Specify how metadata must be spanned across the devices specified=

=2E Valid

Quoted 8 lines
Quoted 8 lines

=A0values are raid0, raid1, raid10 or single.
=A0.TP
+\fB\-M\fR, \fB\-\-mixed\fR

man/mkfs.btrfs.8.in +3 -0
+Mix data and metadata chunks together for more efficient space
+utilization.
+.TP

=A0\fB\-n\fR, \fB\-\-nodesize \fIsize\fR
=A0Specify the nodesize. By default the value is set to the pagesize=

=2E

Quoted 5 lines
Quoted 3 lines

=A0.TP
--
1.7.2.2

Let's mention that it's for smaller filesystems since it has a signif=

icant

Quoted 1 line

performance impact when using mixed block groups on larger filesystem=

s. =A0Thanks,

Quoted 3 lines

Josef

OK, how about:

Mix data and metadata chunks together for more efficient space utilization, especially on smaller file systems. Incurs a performance penalty.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 1 line · Mitch Harder

On Wed, Nov 10, 2010 at 8:10 PM, Josef Bacik <[email protected]> wrote=

:

Quoted 9 lines
Quoted 9 lines · Mitch Harder
Quoted 8 lines

Update the mkfs.btrfs man page for the -M option to mix data and metadata chunks.

---
=A0man/mkfs.btrfs.8.in | =A0 =A05 +++++ =A01 files changed, 5 insertions(+), 0 deletions(-)

Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
man/mkfs.btrfs.8.in +0 -0
index 1e14c6c..c23dddc 100644
@@ -9,6 +9,7 @@ mkfs.btrfs \- create an btrfs filesystem

=A0[ \fB \-l\fP\fI leafsize\fP ]

Quoted 8 lines
Quoted 8 lines

=A0[ \fB \-L\fP\fI label\fP ]
=A0[ \fB \-m\fP\fI metadata profile\fP ]
+[ \fB \-M\fP\fI mixed data+metadata\fP ]
=A0[ \fB \-n\fP\fI nodesize\fP ]
=A0[ \fB \-s\fP\fI sectorsize\fP ]
=A0[ \fB \-h\fP ]

man/mkfs.btrfs.8.in +0 -0
@@ -45,6 +46,10 @@ Specify a label for the filesystem.

=A0Specify how metadata must be spanned across the devices specifie=

d. Valid

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

=A0values are raid0, raid1, raid10 or single.
=A0.TP
+\fB\-M\fR, \fB\-\-mixed\fR

man/mkfs.btrfs.8.in +3 -0
+Mix data and metadata chunks together for more efficient space
+utilization.
+.TP

=A0\fB\-n\fR, \fB\-\-nodesize \fIsize\fR
=A0Specify the nodesize. By default the value is set to the pagesiz=

e.

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

=A0.TP
--
1.7.2.2

Let's mention that it's for smaller filesystems since it has a signi=

ficant

Quoted 1 line
Quoted 1 line

performance impact when using mixed block groups on larger filesyste=

ms. =A0Thanks,

Quoted 8 lines
Quoted 3 lines

Josef

OK, how about:

Mix data and metadata chunks together for more efficient space utilization, especially on smaller file systems. =A0Incurs a performa=

nce

Quoted 1 line

penalty.

in a previous message, Josef had mentioned it was specifically for <1GB _only_...

if so, wording should probably make it perfectly clear that the option is totally inappropriate for _anybody_ unless you meet specific/special criteria.

something like DANGER DANGER WILL ROBINSON :-) unless i'm mistaken of c= ourse.

C Anthony
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
In reply to Mitch Harder
Quoted 1 line · Mitch Harder

On Wed, Nov 10, 2010 at 8:10 PM, Josef Bacik <[email protected]> wrote=

:

Quoted 9 lines
Quoted 9 lines · Mitch Harder
Quoted 8 lines

Update the mkfs.btrfs man page for the -M option to mix data and metadata chunks.

---
=A0man/mkfs.btrfs.8.in | =A0 =A05 +++++ =A01 files changed, 5 insertions(+), 0 deletions(-)

Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
man/mkfs.btrfs.8.in +0 -0
index 1e14c6c..c23dddc 100644
@@ -9,6 +9,7 @@ mkfs.btrfs \- create an btrfs filesystem

=A0[ \fB \-l\fP\fI leafsize\fP ]

Quoted 8 lines
Quoted 8 lines

=A0[ \fB \-L\fP\fI label\fP ]
=A0[ \fB \-m\fP\fI metadata profile\fP ]
+[ \fB \-M\fP\fI mixed data+metadata\fP ]
=A0[ \fB \-n\fP\fI nodesize\fP ]
=A0[ \fB \-s\fP\fI sectorsize\fP ]
=A0[ \fB \-h\fP ]

man/mkfs.btrfs.8.in +0 -0
@@ -45,6 +46,10 @@ Specify a label for the filesystem.

=A0Specify how metadata must be spanned across the devices specifi=

ed. Valid

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

=A0values are raid0, raid1, raid10 or single.
=A0.TP
+\fB\-M\fR, \fB\-\-mixed\fR

man/mkfs.btrfs.8.in +3 -0
+Mix data and metadata chunks together for more efficient space
+utilization.
+.TP

=A0\fB\-n\fR, \fB\-\-nodesize \fIsize\fR
=A0Specify the nodesize. By default the value is set to the pagesi=

ze.

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

=A0.TP
--
1.7.2.2

Let's mention that it's for smaller filesystems since it has a sign=

ificant

Quoted 1 line
Quoted 1 line

performance impact when using mixed block groups on larger filesyst=

ems. =A0Thanks,

Quoted 8 lines
Quoted 3 lines

Josef

=20
OK, how about:
=20
Mix data and metadata chunks together for more efficient space utilization, especially on smaller file systems. Incurs a performanc=

e

Quoted 1 line

penalty.

Let's say

This feature incurs a performance penalty in larger filesystems, it is recommended for use with filesystems of 1 GiB or smaller.

Thanks,

Josef
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
Quoted 2 lines · Josef Bacik

This feature incurs a performance penalty in larger filesystems, it is recommended for use with filesystems of 1 GiB or smaller.

Maybe slightly stronger, for example:

This feature incurs a performance penalty for larger filesystems and it is ONLY recommended for use with filesystems of 1 GiB or smaller.

Is it worth having a check and a warning printed if a user does try and make a filesystem larger than 1GiB with this option ?

Just in case they don't RTFM...

cheers,
Chris

Signature · 1 line
 Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC
#6 lore raw
Quoted 7 lines · Chris Samuel
Quoted 2 lines · Josef Bacik

This feature incurs a performance penalty in larger filesystems, it is recommended for use with filesystems of 1 GiB or smaller.

Maybe slightly stronger, for example:

Quoted 8 lines

This feature incurs a performance penalty for larger filesystems and it is ONLY recommended for use with filesystems of 1 GiB or smaller.

Is it worth having a check and a warning printed if a user does try and make a filesystem larger than 1GiB with this option ?

Just in case they don't RTFM...

No because depending on your usage it's actually kind of usefull for anything less than 5 GiB, and you're only looking at about a 5-10% perf degredation when using it on larger filesystems. Thanks,

Josef

#7 lore raw
Quoted 4 lines · Josef Bacik
Quoted 3 lines · Chris Samuel
Quoted 1 line · Josef Bacik

This feature incurs a performance penalty in larger filesystems, i=

t is

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

recommended for use with filesystems of 1 GiB or smaller.

Maybe slightly stronger, for example:

This feature incurs a performance penalty for larger filesystems and=

it

Quoted 9 lines
Quoted 7 lines

is ONLY recommended for use with filesystems of 1 GiB or smaller.

Is it worth having a check and a warning printed if a user does try and make a filesystem larger than 1GiB with this option ?

Just in case they don't RTFM...

No because depending on your usage it's actually kind of usefull for =

anything

Quoted 1 line

less than 5 GiB, and you're only looking at about a 5-10% perf degred=

ation when

Quoted 2 lines

using it on larger filesystems. =C2=A0Thanks,

Then a warning of 10% slowdown if > 10GB would be good. It's surprising how many will just read some forum post and not concern themselves with the docs at all.

And making them type "yes" if > 100GB is probably a good idea too... --
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw
Quoted 20 lines · On Friday 12 of November 2010 18:44:12 you wrote:
Quoted 10 lines · Josef Bacik
Quoted 9 lines · Chris Samuel
Quoted 2 lines · Josef Bacik

This feature incurs a performance penalty in larger filesystems, it is recommended for use with filesystems of 1 GiB or smaller.

Maybe slightly stronger, for example:

This feature incurs a performance penalty for larger filesystems and it is ONLY recommended for use with filesystems of 1 GiB or smaller.

Quoted 8 lines
Quoted 4 lines

Is it worth having a check and a warning printed if a user does try and make a filesystem larger than 1GiB with this option ?

Just in case they don't RTFM...

No because depending on your usage it's actually kind of usefull for anything less than 5 GiB, and you're only looking at about a 5-10% perf degredation when using it on larger filesystems. Thanks,

Quoted 5 lines

Then a warning of 10% slowdown if > 10GB would be good. It's surprising how many will just read some forum post and not concern themselves with the docs at all.

And making them type "yes" if > 100GB is probably a good idea too...

My 2c: I'm against bloating the program just because of people who don't RTFM. Just mention it clearly in docs and that's enough, linux does what it's asked for, not the "Are you really really sure you want to do this?" known from some other OS. Anyway, btrfs-progs would be probably run by a user with root privileges and such should be aware of what actions they do, or read the man page. My opinion.
Cheers, Mark

Signature · 1 line
Marek Otahal :o)
#11 lore raw
In reply to Mike Fedyk

On Fri, Nov 12, 2010 at 4:44 AM, Mike Fedyk <[email protected]> wrot= e:

Quoted 1 line

On Thu, Nov 11, 2010 at 11:41 PM, Josef Bacik <[email protected]> wrot=

e:

Quoted 4 lines
Quoted 4 lines · Chris Samuel
Quoted 3 lines · Josef Bacik
Quoted 2 lines

This feature incurs a performance penalty in larger filesystems, =

it is

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line

recommended for use with filesystems of 1 GiB or smaller.

Maybe slightly stronger, for example:

This feature incurs a performance penalty for larger filesystems an=

d it

Quoted 9 lines
Quoted 9 lines
Quoted 7 lines

is ONLY recommended for use with filesystems of 1 GiB or smaller.

Is it worth having a check and a warning printed if a user does try and make a filesystem larger than 1GiB with this option ?

Just in case they don't RTFM...

No because depending on your usage it's actually kind of usefull for=

anything

Quoted 1 line
Quoted 1 line

less than 5 GiB, and you're only looking at about a 5-10% perf degre=

dation when

Quoted 9 lines
Quoted 2 lines

using it on larger filesystems. =A0Thanks,

Then a warning of 10% slowdown if > 10GB would be good. =A0It's surprising how many will just read some forum post and not concern themselves with the docs at all.

And making them type "yes" if > 100GB is probably a good idea too...

Just for clarification, you'll probably see a ~5-10% slowdown for any size partition, not just "if > 10 GB"

But for smaller filesystems (~<5 GiB), you may want to accept the performance penalty for more efficient disk space utilization.

=46or really small filesystems (~<1 GiB), using Btrfs defaults can really start to impact on space utilization. So the parent data+metadata patch currently forces the data+metadata option on <1 GiB.

The Wiki is probably a better place for more extensive discussion of the merits and trade-offs of this option.

The user still needs to actively "opt-in" to this option (unless their partition is < GiB), and the man page will indicate a performance penalty is incurred.

=46or something as important as changing your filesystem default settings, it seems fair to expect the user has done their homework when changing from the default setting.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw
In reply to Marek Otahal

On Fri, Nov 12, 2010 at 6:28 AM, Marek Otahal <[email protected]> wr= ote:

Quoted 2 lines · On Friday 12 of November 2010 18:44:12 you wrote:
Quoted 1 line

On Thu, Nov 11, 2010 at 11:41 PM, Josef Bacik <[email protected]> wro=

te:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines · Chris Samuel
Quoted 2 lines · Josef Bacik
Quoted 1 line

This feature incurs a performance penalty in larger filesystems=

, it is

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line

recommended for use with filesystems of 1 GiB or smaller.

Maybe slightly stronger, for example:

This feature incurs a performance penalty for larger filesystems =

and it

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

is ONLY recommended for use with filesystems of 1 GiB or smaller.

Is it worth having a check and a warning printed if a user does try and make a filesystem larger than 1GiB with this option ?

Just in case they don't RTFM...

No because depending on your usage it's actually kind of usefull f=

or

Quoted 1 line
Quoted 1 line
Quoted 1 line

anything less than 5 GiB, and you're only looking at about a 5-10%=

perf

Quoted 8 lines
Quoted 7 lines
Quoted 1 line

degredation when using it on larger filesystems. =C2=A0Thanks,

Then a warning of 10% slowdown if > 10GB would be good. =C2=A0It's surprising how many will just read some forum post and not concern themselves with the docs at all.

And making them type "yes" if > 100GB is probably a good idea too...

My 2c: I'm against bloating the program just because of people who do=

n't RTFM.

Quoted 1 line

Just mention it clearly in docs and that's enough, linux does what it=

's asked

Quoted 1 line

for, not the "Are you really really sure you want to do this?" known =

from some

Quoted 1 line

other OS. Anyway, btrfs-progs would be probably run by a user with ro=

ot

I was thinking of what ssh does when it sees a changed key... --
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#10 lore raw

On Fri, Nov 12, 2010 at 10:56 AM, Mike Fedyk <[email protected]> wro= te:

Quoted 1 line

On Fri, Nov 12, 2010 at 6:28 AM, Marek Otahal <[email protected]> =

Quoted 2 lines · wrote:
Quoted 2 lines · On Friday 12 of November 2010 18:44:12 you wrote:
Quoted 1 line

On Thu, Nov 11, 2010 at 11:41 PM, Josef Bacik <[email protected]> wr=

ote:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines · Chris Samuel
Quoted 2 lines · Josef Bacik
Quoted 1 line

This feature incurs a performance penalty in larger filesystem=

s, it is

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line

recommended for use with filesystems of 1 GiB or smaller.

Maybe slightly stronger, for example:

This feature incurs a performance penalty for larger filesystems=

and it

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

is ONLY recommended for use with filesystems of 1 GiB or smaller=

=2E

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines

Is it worth having a check and a warning printed if a user does try and make a filesystem larger than 1GiB with this option ?

Just in case they don't RTFM...

No because depending on your usage it's actually kind of usefull =

for

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

anything less than 5 GiB, and you're only looking at about a 5-10=

% perf

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line

degredation when using it on larger filesystems. =A0Thanks,

Then a warning of 10% slowdown if > 10GB would be good. =A0It's surprising how many will just read some forum post and not concern themselves with the docs at all.

And making them type "yes" if > 100GB is probably a good idea too..=

=2E

Quoted 1 line
Quoted 1 line

My 2c: I'm against bloating the program just because of people who d=

on't RTFM.

Quoted 1 line
Quoted 1 line

Just mention it clearly in docs and that's enough, linux does what i=

t's asked

Quoted 1 line
Quoted 1 line

for, not the "Are you really really sure you want to do this?" known=

from some

Quoted 1 line
Quoted 1 line

other OS. Anyway, btrfs-progs would be probably run by a user with r=

oot

Quoted 4 lines

I was thinking of what ssh does when it sees a changed key... --
To unsubscribe from this list: send the line "unsubscribe linux-btrfs=

" in

Quoted 3 lines

the body of a message to [email protected]
More majordomo info at =A0http://vger.kernel.org/majordomo-info.html

Thanks for the input everybody.

=46or now, I'm going to leave the man page entry relatively simple to stay consistent with the level of information provided by the other switches.

I'll submit the updated patch in a fresh post to the M/L.

I see a lot of activity in patch submissions for btrfs-progs, so if anybody would like me to rework this patch or the parent patch on implementing data+metadata in btrfs-progs for any reason, let me know. --
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html