On Dec 10, 2013, at 8:19 PM, Imran Geriskovan <imran.gerisko...@gmail.com> 
wrote:
> 
> Now the question is, is it a good practice to use "-M" for large filesystems?
> Pros, Cons? What is the performance impact? Or any other possible impact?

Uncertain. man mkfs.btrfs says "Mix data and metadata chunks together for more 
efficient space utilization.  This feature incurs a performance penalty in 
larger filesystems.  It is recommended for use with filesystems of 1 GiB or 
smaller."

I haven't benchmarked to quantify the penalty.

> I guess you are talking about SSD's. Even if you write duplicates
> on distinct erase blocks, they may end up in same block after
> firmware's relocation, defragmentation, migration, remapping,
> god knows what ...ation operations. So practically, block
> address does not point any fixed physical location on SSDs.

Yes SSDs, although it seems that any flash media could behave this way as it's 
up to the manufacturer's firmware how it ends up behaving.

> Luckly we have hard drives with still sensible block addressing.
> Even with bad block relocation.

Seagate has said they've already shipped 1 million shingled magnetic recording 
(SMR) hard drives. I don't know what sort of "FTL-like" behavior they 
implement, but it stands to reason that since the file system doesn't know what 
LBAs translate into physical sectors that are part of a layered band, and what 
LBA's are suited for random IO, that the drive might be capable of figuring 
this out. Random IO LBA's go to physical sectors suited for this, and 
sequential writes go to bands.

> i.e. The new Advanced format drives may employ 4K blocks
> but present 512B logical blocks which may be another reencarnation
> of the SSD problem above. However, I guess linux kernel does not
> access such drives using logical addressing.

It does, absolutely. All drives are access by LBA these days. And Linux does 
fine with both varieties of AF disks: 512e, and 4Kn.

Off hand I think the only issue is that pretty much no BIOS firmware will boot 
from a drive with 4K logical/physical sectors, so called 4Kn drives that do not 
present 512byte sectors. And since UEFI bugs are all over the place, I'd kinda 
expect booting to work with some firmware and not others. I haven't tested it, 
but I'm pretty sure I've read GRUB2 and the kernel are able to boot from 4Kn 
drives so long as the firmware can handle it.


Chris Murphy--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to