Re: Western Digital Red's SMR and btrfs?

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

 



On 2020/05/10 6:01, Phil Karn wrote:
> On 5/4/20 16:08, Zygo Blaxell wrote:
>> The basic problem with DM-SMR drives is that they cache writes in CMR
>> zones for a while, but they need significant idle periods (no read or
>> write commands from the host) to move the data back to SMR zones, or
>> they run out of CMR space and throttle writes from the host.
> 
> Does anybody know where the drive keeps all that metadata? On rotating
> disk, or in flash somewhere?

This is drive implementation dependent. That is not something defined by
standards. Differences will exist between vendors and models.

> Just wondering what happens when power suddenly fails during these
> rewrite operations.

The drive FW saves whatever information is needed, consistent with the drive
write cache flush state. Exactly like an SSD would do too.


>> Some kinds of RAID rebuild don't provide sufficient idle time to complete
>> the CMR-to-SMR writeback, so the host gets throttled.  If the drive slows
> 
> My understanding is that large sequential writes can go directly to the
> SMR areas, which is an argument for a more conventional RAID array. How
> hard does btrfs try to do large sequential writes?

"large" is not a sufficient parameter to conclude/guess on any specific
behavior. Alignment (start LBA) of the write command, sectors already written or
not, drive write cache on or off, drive write cache full or not, drive
implementation differences, etc. There are a lot more parameters influencing how
the drive will process writes. There is no simple statement that can be made
about how these drive work internally. This is completely vendor & model
dependent, exactly like SSDs FTL implementations.


-- 
Damien Le Moal
Western Digital Research




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux