You are not logged in.

#1 2012-11-18 21:44:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

16 KB blocks in btrfs metadata anyone?

Is anyone running btrfs using 16 KB blocks?  From what I've read, the default of 4 KB has been expanded back in the linux 3.3 merge to support 8 KB and 16 KB.

Last edited by graysky (2012-11-19 10:07:08)

Offline

#2 2012-11-18 23:08:39

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,725
Website

Re: 16 KB blocks in btrfs metadata anyone?

I've got a btrfs raid 1 partition (as in, two 20GB partitions with btrfs RAID, not hardware RAID) running on two identical SSDs, and it works quite well. One downside is that you have to use grub 2 (if you have success with another bootloader, please let me know).

I'm using 4 KB blocks for metadata, so I can't comment on that. I vaguely remember Avi Miller saying that 16 KB will become the default evevntually, but tbh, I don't understand what benefit that will offer (if any).

Last edited by WorMzy (2012-11-18 23:10:06)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2012-11-18 23:32:46

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: 16 KB blocks in btrfs metadata anyone?

See Avi's presentation noted on the btrfs wiki.  Metadata writes are supposed to be >2x with them and, at the time of the talk, Chris was considering making 16k the default moving forward.  I believe formatting with mkfs.btrfs -s 16k will do it but haven't checked.

EDIT: image.jpg

If you advance to around 6:40 in the talk, you will hear him speak of this feature.

EDIT2: see the btrfs changlog for 3.4 wherein 16k or 32k are reported to give best results.

Last edited by graysky (2012-11-18 23:46:37)

Offline

#4 2012-11-18 23:46:46

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,725
Website

Re: 16 KB blocks in btrfs metadata anyone?

Haha, I just came back to post that. tongue

I've got some free time in the next few weeks, so I may switch to a 16 KB at some point. I'll post some feedback if I get around to it, but I really don't think it'll make any difference on an SSD. I mean, how much metadata do you need to read/write per file?

EDIT: I think I may have found out: https://www.youtube.com/watch?feature=p … Bw#t=1214s

Last edited by WorMzy (2012-11-19 15:24:05)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB