Skip to contentSkip to conversation

(late) REQUEST: Default mkfs.btrfs block size

DISCUSSION Alex 4 participants 4 messages Oct 31, 2012 – Nov 8, 2012 Btrfs file system

lore
Share & tools
lore

Alex

author
#0 lore raw

Greetings!

As one 'stuck' with 4k leaves on my main machine for the moment, can I request the btrfs-progs v0.20 defaults to more efficient decent block sizes before release. Most distro install programs for the moment don't give access to the options at install time and there seems to be is a significant advantage to 16k or 32k

I know you're at -rc stage but I hope that this is a no brainer. ;-)

Kind regards.

#1 lore raw
Quoted 5 lines · Alex

As one 'stuck' with 4k leaves on my main machine for the moment, can I request the btrfs-progs v0.20 defaults to more efficient decent block sizes before release. Most distro install programs for the moment don't give access to the options at install time and there seems to be is a significant advantage to 16k or 32k

IMHO this should be fixed inside the installer, changing defaults for a core utility will affect everybody. 4k is the most tested option and thus can be considered "safe for everybody".

The installer may let you to enter a shell and create the filesystem by hand, then point it to use it for installation.

david

#2 lore raw
Quoted 7 lines · David Sterba
Quoted 5 lines · Alex

As one 'stuck' with 4k leaves on my main machine for the moment, can I request the btrfs-progs v0.20 defaults to more efficient decent block sizes before release. Most distro install programs for the moment don't give access to the options at install time and there seems to be is a significant advantage to 16k or 32k

Quoted 6 lines

IMHO this should be fixed inside the installer, changing defaults for a core utility will affect everybody. 4k is the most tested option and thus can be considered "safe for everybody".

The installer may let you to enter a shell and create the filesystem by hand, then point it to use it for installation.

If we know a better setting, we should default to it. Punting the decision to the distro just means I'll spend the next 3 years telling people "yeah, distro X doesn't set it to the recommended setting (which isn't the mkfs default), and there's no way to change it without wiping and reinstalling using manual partitioning blah blah blah."

#3 lore raw
Quoted 15 lines · cwillu
Quoted 7 lines · David Sterba
Quoted 5 lines · Alex

As one 'stuck' with 4k leaves on my main machine for the moment, can I request the btrfs-progs v0.20 defaults to more efficient decent block sizes before release. Most distro install programs for the moment don't give access to the options at install time and there seems to be is a significant advantage to 16k or 32k

Quoted 6 lines

IMHO this should be fixed inside the installer, changing defaults for a core utility will affect everybody. 4k is the most tested option and thus can be considered "safe for everybody".

The installer may let you to enter a shell and create the filesystem by hand, then point it to use it for installation.

Quoted 6 lines

If we know a better setting, we should default to it. Punting the decision to the distro just means I'll spend the next 3 years telling people "yeah, distro X doesn't set it to the recommended setting (which isn't the mkfs default), and there's no way to change it without wiping and reinstalling using manual partitioning blah blah blah."

Totally agree - this is the policy that we follow for mkfs.xfs defaults. i.e. If we know it is better for the majority of workloads, and we have confidence it's not going to cause lots of new problems or regressions, then it should be the default setting.

This is also the reason that we can say "use the defaults" to most questions about "what is optimal?". i.e:

http://xfs.org/index.php/XFS_FAQ#Q:_I_want_to_tune_my_XFS_filesystems_for_.3Csomething.3E

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]