Shingled magnetic recording explained

Shingled magnetic recording (SMR) is a magnetic storage data recording technology used in hard disk drives (HDDs) to increase storage density and overall per-drive storage capacity.[1] Conventional hard disk drives record data by writing non-overlapping concentric magnetic tracks (conventional magnetic recording, CMR), while shingled recording writes new tracks that overlap part of the previously written magnetic track, leaving the previous track narrower and allowing higher track density. Thus, the tracks partially overlap similar to roof shingles. This approach was selected because, if the writing head is made too narrow, it cannot provide the very high fields required in the recording layer of the disk.[2] [3] [4] [5]

The overlapping-tracks architecture complicates the writing process, since writing to one track also overwrites an adjacent track. If adjacent tracks contain valid data, they must be rewritten as well. As a result, SMR drives are divided into many append-only (sequential) zones of overlapping tracks that need to be rewritten entirely when full, resembling flash blocks in solid-state drives. Device-managed SMR devices hide this complexity by managing it in the firmware, presenting an interface like any other hard disk. Other SMR devices are host-managed and depend on the operating system to know how to handle the drive, and only write sequentially to certain regions of the drive.[6] While SMR drives can use DRAM, flash memory, and even a portion of their own platter reserved for use with CMR instead of SMR,[7] as a cache to improve writing performance, continuous writing of large amount of data is noticeably slower than with CMR drives.[8] [9]

History

Seagate started shipping device-managed SMR hard drives in September 2013, stating an increase in overall capacity of about 25% compared to non-shingled storage.[10] In September 2014, HGST announced a 10 TB drive filled with helium that uses host-managed shingled magnetic recording,[11] although in December 2015 it followed this with a 10 TB helium-filled drive that uses conventional non-shingled perpendicular recording.[12]

Western Digital (WD), Toshiba, and Seagate have sold SMR drives without labeling them as such, generating a large controversy, as SMR drives behave much slower under some circumstances (such as random writes) than CMR drives.[13] Some have even claimed that these may cause data loss.[14] These mislabeling practices were used in both consumer-centric and dedicated data storage HDDs for servers, NASes, RAIDs, and cold storage. A United States class-action suit against Western Digital alleging that the technology is inferior was settled on or before August 27, 2021.[15] Due to the controversy, as of June 2020, Western Digital labels their DM-SMR NAS drives as "WD Red" and brands their CMR NAS drives as "WD Red Plus" and "WD Red Pro".[16] [14]

Heavily overlapped (shingled) tracks also appeared earlier in the consumer helical scan video cassette recorders (VCRs) that were popular in the 1980s and 1990s. In Extended Play (EP or SLP) mode, both VHS and Betamax reduced the track pitch by a factor of three. The severe interference from the adjacent tracks was partially mitigated by the use of slant azimuth recording.

Data management

There are three different ways that data can be managed on an SMR drive: device-managed, host-managed and host-aware.[17] [18]

Device-managed

A device-managed or drive-managed drive appears to the host identically to a non-shingled drive. It is not necessary for the host to follow any special protocols. All handling of data, as it relates to the shingled nature of the storage, is managed by the device. Sequential writes are more efficient. In addition, the host is unaware that the storage is shingled.

The disk controller in a device-managed drive internally handles any re-writing required by the special characteristics of a shingled drive, similar to the way a flash memory controller in a solid-state drive internally handles re-writing required by the special characteristics of flash media. SMR drives have append-only zones which operate like SSD blocks, where a sector in a zone cannot be modified without re-writing the entire contents of the zone, so writes are first sent to a CMR cache and the disk moves these data to SMR parts when idle.

Until backlash against Western Digital in 2020, this type of SMR drive was often not labelled by the manufacturer, except in disks labelled as "archival".[13] [9]

RAID resilvering tends to overload the cache, sending SMR drives into minutes-long pauses. Faulty firmware (such as revision 82.00A82 on the WD40EFAX) may also cause the drive to return IDNF S.M.A.R.T. errors under intensive workloads.[7] [19] Both behaviors tend to be interpreted as drive failure by the RAID controller.[20]

The zoned nature of SMR also means that the disk suffers from write amplification when garbage collecting,[21] although for hard drives the main problem with writes is speed instead of longevity. Some SMR hard drives support the TRIM command for this reason.[22]

Host-managed

A host-managed device requires strict adherence to a special protocol by the host. Since the host manages the shingled nature of the storage, it is required to write sequentially so as to not destroy existing data. The drive will refuse to execute commands which violate this protocol.

Host-aware

Host-aware is a combination of drive-managed and host-managed. The drive is capable of managing the shingled nature of the storage and will execute any command the host gives it, regardless of if it is sequential or not. However, the host is aware that the drive is shingled, and able to query the drive for fill levels. This allows the host to optimize writes for the shingled nature, while also allowing the drive to be flexible and backwards-compatible.

Protocol

SMR devices are considered zoned devices, as the storage is divided into zones of usually 256 MiB size. Two sets of specialized commands, ZBC (Zoned Block Commands, ANSI INCITS 536) for SCSI and ZAC (Zoned ATA Commands, ANSI INCITS 537) for SATA are available for SMR devices. They tell the host about whether each zone is CMR or SMR and allow them to address these zones directly.[23] Unless specifically mentioned, the commands are only available on host-aware/-managed devices. The specific commands are:[24]

Each zone has a range of LBA addresses associated with it, and all LBA-based commands can be used as long as the sequential requirement is followed on host-managed drives.

SMR devices identify themselves per the following:[25] [26] [5]

A newer version of the sibling standards, ZAC-2/ZBC-2 is under development. The new version introduces a new type of "domains and realms zoned block devices" that allow for non-contiguous LBAs.[27] The ZONED field has been retired following a proposal from Western Digital.[28]

The zoned interface is also useful for flash storage. ZNS spec has been released by the NVM Express organization.[29]

Software and application

The higher density of SMR drives, combined with its random-read nature, fills a niche between the sequential-access tape storage and the random-access conventional hard drive storage. They are suited to storing data that are unlikely to be modified, but need to be read from any point efficiently. One example of the use case is Dropbox's Magic Storage system, which runs the on-disk extents in an append-only way.[30] Device-managed SMR disks have also been marketed as "Archive HDDs" due to this property.[31]

A number of file systems in Linux are or can be tuned for SMR drives:[32]

In addition to Linux, FreeBSD has protocol-level support for host-managed SMR drives.[37], neither Windows nor MacOS supports the HM-SMR drives.[38]

Dynamic hybrid SMR

While for traditional SMR models each zone is assigned a type at manufacture time, dynamic hybrid SMR drives allow to reconfigure the zone type from shingled to conventional and back by the customer.[39] [40] Adjusting the SMR/CMR setting helps suit the drive to the current workload of "hot" and "cold" data.[21]

Criticism

SMR drives have received criticism online for slow read / write speeds and low stability.[41] [42] [43] [44] [45] Drive manufacturers have been further criticised for attempting to conceal the use of SMR technology in their products.[46] [47]

See also

External links

Specifications

Notes and References

  1. Web site: Seagate to Ship 5TB HDD in 2014 using Shingled Magnetic Recording . AnandTech. Anand Lal Shimpi . September 9, 2013 . February 9, 2015.
  2. Web site: Shingled Magnetic Recording and Two-Dimensional Magnetic Recording . Roger Wood . . October 19, 2010 . December 14, 2014 .
  3. Web site: What is Shingled Magnetic Recording (SMR)? . storagereview.com . January 30, 2015 . February 9, 2015.
  4. https://www.toshiba.co.jp/tech/review/2019/06/74_06pdf/a04.pdf K. Shimomura, "Large-Capacity HDDs Applying SMR Technology for Data Centers", Toshiba Technology Review, Vol. 24, No. 6., pp. 12-16, Nov 2019
  5. Web site: Shingled Magnetic Recording: Models, Standardization, and Applications . September 22, 2014 . February 9, 2015 . Mary Dunn . Timothy Feldman . .
  6. Web site: Support for shingled magnetic recording devices . Jake Edge . . March 26, 2014 . December 14, 2014.
  7. Web site: Taillac . Will . 2020-05-28 . WD Red SMR vs CMR Tested Avoid Red SMR . 2023-02-13 . ServeTheHome . en-US.
  8. Web site: The Evolution of HDDs in the Near Future: Speaking with Seagate CTO, Mark Re . Shilov . Anton . www.anandtech.com . 2020-05-30.
  9. News: Alcorn . Paul . Sneaky Marketing Redux: Toshiba, Seagate Shipping Slower SMR Drives Without Disclosure, Too . Tom’s Hardware . 17 April 2020.
  10. Web site: Seagate Delivers On Technology Milestone: First To Ship Hard Drives Using Next-Generation Shingled Magnetic Recording . www.seagate.com . 28 October 2021 . 9 September 2013.
  11. News: Shingled platters breathe helium inside HGST's 10TB hard drive . Geoff Gasior . September 9, 2020. The Tech Report . February 9, 2020.
  12. News: HGST releases helium-filled 10TB hard drive; Seagate twiddles shingled fingers . Sebastian Anthony . 3 December 2020 . Ars Technica . 3 December 2015.
  13. News: Salter . Jim . Sneaky Marketing Redux: Toshiba, Seagate Shipping Slower SMR Drives Without Disclosure, Too . Ars Technica . 17 June 2020.
  14. Web site: Team . iX . 2020-06-29 . WD Red Plus drives are "Coke Classic" . 2023-09-24 . TrueNAS - Welcome to the Open Storage Era . en-US.
  15. Web site: Western Digital Hard Drive $2.7M Class Action Settlement . Top Class Actions . 24 November 2021 . https://web.archive.org/web/20211124152833/https://topclassactions.com/lawsuit-settlements/consumer-products/electronics/1030245-western-digital-hard-drive-2-7m-class-action-settlement/ . 24 November 2021 .
  16. Web site: S . Ganesh T. . Western Digital Announces Red Plus HDDs, Cleans Up Red SMR Mess with Plus Branding . 2023-09-24 . www.anandtech.com.
  17. Web site: Zoned Block Commands (ZBC) . t10.org . ANSI T10 Committee . 22 January 2018.
  18. Web site: SMR: The Next Generation of Storage Technology . Jorge . Campello . 24 September 2015 . 22 January 2018.
  19. Web site: WD Red SMR Drive Compatibility with ZFS . 2024-02-15 . www.truenas.com . en.
  20. Web site: Mellor . Chris . Shingled hard drives have non-shingled zones for caching writes . Blocks and Files . 15 April 2020.
  21. Brewer . Eric . Ying . Lawrence . Greenfield . Lawrence . Cypher . Robert . T'so . Theodore . Disks for Data Centers . Proceedings of USENIX FAST 2016 . 2016 . en.
  22. Web site: TRIM Command Support for WD External Drives . WD support.
  23. Web site: https://web.archive.org/web/20170611164138/http://www.tomsitpro.com/articles/shingled-magnetic-recoding-smr-101-basics,2-933.html. 2017-06-11. SMR (Shingled Magnetic Recording) 101. 2018-03-03. Tom's IT Pro. en.
  24. Web site: Introduction to Shingled Magnetic Recording . ZonedStorage.io.
  25. Web site: Information technology - ATA Command Set - 4 (ACS-4), Draft revision 18 .
  26. Web site: Seagate . SCSI Commands Reference Manual, Rev. J . 472.
  27. [#zbc2-spec|T10, 2020.]
  28. Web site: Weber . Ralph O . April 23, 2020 . SBC-5, ZBC-2: Obsolete the ZONED field . www.t10.org . registration.
  29. Web site: NVMe Command Set Specifications. January 10, 2020 .
  30. Web site: Extending Magic Pocket Innovation with the first petabyte scale SMR drive deployment. Magic Pocket Hardware Engineering Teams. dropbox.tech.
  31. Web site: Archive HDD. Seagate. 2019-03-03. en.
  32. Web site: File Systems. ZonedStorage.io.
  33. Web site: Zoned mode — BTRFS documentation . 2024-03-26 . btrfs.readthedocs.io.
  34. Web site: Seagate/SMR_FS-EXT4: an addition to the popular EXT4 to enable support for devices that use the ZBC or ZAC standards . Seagate Technology . 10 December 2019.
  35. Web site: Device Mapper . ZonedStorage.io.
  36. Web site: Le Moal . Damien . fs: New zonefs file system . lwn.net.
  37. Web site: FreeBSD Revision 300207: Add support for managing Shingled Magnetic Recording (SMR) drives. . 2015-05-19 . Kenneth . Merry .
  38. Web site: Seagate Exos X26z Review - 25TB Host-Managed SMR HDD . 2024-07-31 . StorageReview.com . en-US.
  39. Web site: Dynamic Hybrid SMR. Collins. Brendan. 13 November 2017. Western Digital. 25 August 2018.
  40. Web site: Dynamic Hybrid-SMR: an OCP proposal to improve data center disk drives. 13 November 2017. blog.google. 22 January 2018.
  41. Web site:
  42. Web site: Illeazar . 2020-08-03 . I knew SMR had slow write speeds, but 1MB/second? . 2024-01-29 . r/DataHoarder.
  43. Web site: NeaZerros . 2021-06-22 . Slow read speeds on SMR drives . 2024-01-29 . r/DataHoarder.
  44. Web site: vanderworp . 2023-01-17 . SMR hard disks: Avoid them! . 2024-01-29 . vanderworp.org . en-GB.
  45. Web site: Taillac . Will . 2020-05-28 . WD Red SMR vs CMR Tested Avoid Red SMR . 2024-01-30 . ServeTheHome . en-US.
  46. Web site: Mellor . Chris . 2020-04-15 . Seagate 'submarines' SMR into 3 Barracuda drives and a Desktop HDD . 2024-01-30 . Blocks and Files . en-US.
  47. Web site: updated . Paul Alcorn last . 2020-04-14 . Western Digital Fesses Up: Some Red HDDs Use Slow SMR Tech Without Disclosure . 2024-01-30 . Tom's Hardware . en.