Re: [PATCH v10 05/41] btrfs: check and enable ZONED mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2020/12/01 19:45, Graham Cobb wrote:
> On 01/12/2020 02:29, Damien Le Moal wrote:
>> Yes. These drives are fully backward compatible and accept random writes
>> anywhere. Performance however is potentially a different story as the drive will
>> eventually need to do internal garbage collection of some sort, exactly like an
>> SSD, but definitely not at SSD speeds :)
>>
>>>   Are we ok to replace an HM device with a HA device? Or add a HA device 
>>> to a btrfs on an HM device.
>>
>> We have a choice here: we can treat HA drives as regular devices or treat them
>> as HM devices. Anything in between does not make sense. I am fine either way,
>> the main reason being that there are no HA drive on the market today that I know
>> of (this model did not have a lot of success due to the potentially very
>> unpredictable performance depending on the use case).
> 
> So there will be no testing against HA drives? And no btrfs developers
> will have one? And they have very different timing and possibly failure
> modes from "normal" disks when they do GC?
> 
> I think there is no option but to disallow them. If HA drives start to
> appear in significant numbers then that would be easy enough to change,
> after suitable testing.

Works for me. Even simpler :)

> 
>> Of note is that a host-aware drive will be reported by the block layer as
>> BLK_ZONED_HA only as long as the drive does not have any partition. If it does,
>> then the block layer will treat the drive as a regular disk.
> 
> That is a bit of a shame. With that unfortunate decision in the block
> layer, system managers need to realise that partitioning an HA disk
> means they may be entering territory untested by their filesystem.

Well, not really. HA drives, per specifications, are backward compatible. If
they are partitioned, the block layer will force a regular drive mode use,
hiding their zoned interface, which is completely optional to use in the first
place.

If by "untested territory" you mean the possibility of hitting drive FW bugs
coming from the added complexity of internal GC, then I would argue that this is
a common territory for any FS on any drive, especially SSDs: device FW bugs do
exist and show up from time to time, even on the simplest of drives.


-- 
Damien Le Moal
Western Digital Research




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux