Shingled magnetic recording
   HOME

TheInfoList



OR:

Shingled magnetic recording (SMR) is a
magnetic storage Magnetic storage or magnetic recording is the storage of data on a magnetized medium. Magnetic storage uses different patterns of magnetisation in a magnetizable material to store data and is a form of non-volatile memory. The information is ac ...
data recording technology used in
hard disk drive A hard disk drive (HDD), hard disk, hard drive, or fixed disk is an electro-mechanical data storage device that stores and retrieves digital data using magnetic storage with one or more rigid rapidly rotating platters coated with magne ...
s (HDDs) to increase storage density and overall per-drive storage capacity. Conventional hard disk drives record data by writing non-overlapping magnetic tracks parallel to each other (
perpendicular magnetic recording Perpendicular recording (or perpendicular magnetic recording, PMR), also known as conventional magnetic recording (CMR), is a technology for data recording on magnetic media, particularly hard disks. It was first proven advantageous in 1976 by Sh ...
, PMR), while shingled recording writes new tracks that overlap part of the previously written magnetic track, leaving the previous track narrower and allowing for higher track density. Thus, the tracks partially overlap similar to
roof shingle Roof shingles are a roof covering consisting of individual overlapping elements. These elements are typically flat, rectangular shapes laid in courses from the bottom edge of the roof up, with each successive course overlapping the joints below. ...
s. 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. 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 drive A solid-state drive (SSD) is a solid-state storage device that uses integrated circuit assemblies to store data persistently, typically using flash memory, and functioning as secondary storage in the hierarchy of computer storage. It is ...
s. ''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. While SMR drives can use DRAM and flash memory caches to improve writing performance, continuous writing of large amount of data is noticeably slower than with PMR drives.


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. In September 2014,
HGST HGST, Inc. (Hitachi Global Storage Technologies) was a manufacturer of hard disk drives, solid-state drives, and external storage products and services. It was initially a subsidiary of Hitachi, formed through its acquisition of IBM's disk d ...
announced a 10 TB drive filled with
helium Helium (from el, ἥλιος, helios, lit=sun) is a chemical element with the symbol He and atomic number 2. It is a colorless, odorless, tasteless, non-toxic, inert, monatomic gas and the first in the noble gas group in the periodic table. ...
that uses host-managed shingled magnetic recording, although in December 2015 it followed this with a 10 TB helium-filled drive that uses conventional non-shingled perpendicular recording. In November 2019, HGST introduced 14 TB and 15 TB drives.
Western Digital Western Digital Corporation (WDC, commonly known as Western Digital or WD) is an American computer drive manufacturer and data storage company, headquartered in San Jose, California. It designs, manufactures and sells data technology produc ...
,
Toshiba , commonly known as Toshiba and stylized as TOSHIBA, is a Japanese multinational conglomerate corporation headquartered in Minato, Tokyo, Japan. Its diversified products and services include power, industrial and social infrastructure systems, ...
, and Seagate have sold SMR drives without labeling them as such, generating a large controversy, as SMR drives behave much more slowly under some circumstances (such as random writes) than PMR drives. Some have even claimed that these may cause data loss. 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 the technology is inferior was settled on or before August 27, 2021. Heavily-overlapped (shingled) tracks also appeared earlier in the consumer
helical scan Helical scan is a method of recording high-frequency signals on magnetic tape. It is used in open-reel video tape recorders, video cassette recorders, digital audio tape recorders, and some computer tape drives. History Earl E Masterson fro ...
video cassette recorders A videocassette recorder (VCR) or video recorder is an electromechanical device that records analog audio and analog video from broadcast television or other source on a removable, magnetic tape videocassette, and can play back the recordin ...
(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 Azimuth recording is the use of a variation in angle between two recording heads that are recording data so close together on magnetic tape that crosstalk would otherwise likely occur. Normally, the head is perpendicular to the movement of the tape ...
.


Data management

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


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 {{unreferenced, date=May 2010 The disk controller is the controller circuit which enables the CPU to communicate with a hard disk, floppy disk or other kind of disk drive. It also provides an interface between the disk drive and the bus conne ...
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 A flash memory controller (or flash controller) manages data stored on flash memory (usually NAND flash) and communicates with a computer or electronic device. Flash memory controllers can be designed for operating in low duty-cycle environments ...
internally handles re-writing required by the special characteristics of flash media. Until recently, this type of SMR drive was often not labelled by the manufacturer. Its firmware-controlled shingle translation layer operation can be compared to
solid-state drive A solid-state drive (SSD) is a solid-state storage device that uses integrated circuit assemblies to store data persistently, typically using flash memory, and functioning as secondary storage in the hierarchy of computer storage. It is a ...
s, as LBA addresses do not correlate much to on-disk structure. The append-only zones are very slow for random writing, so writes are first sent to a PMR cache, and the disk moves these data to SMR parts when idle. RAID
resilvering In data storage, disk mirroring is the replication of logical disk volumes onto separate physical hard disks in real time to ensure continuous availability. It is most commonly used in RAID 1. A mirrored volume is a complete logical represen ...
tends to overload the cache, sending SMR drives into minutes-long pauses. Faulty firmware (such as WD40EFAX) may also throw an error when asked to read an address never written to. Both behaviors tend to be interpreted as drive failure by the RAID controller. The zoned nature of SMR also means that the disk suffers from
write amplification Write amplification (WA) is an undesirable phenomenon associated with flash memory and solid-state drives (SSDs) where the actual amount of information physically written to the storage media is a multiple of the logical amount intended to be wr ...
when garbage collecting, 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.


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 SATA (Serial AT Attachment) is a computer bus interface that connects host bus adapters to mass storage devices such as hard disk drives, optical drives, and solid-state drives. Serial ATA succeeded the earlier Parallel ATA (PATA) standard t ...
are available for SMR devices. They tell the host about whether each zone is PMR or SMR and allow them to address these zones directly. Unless specifically mentioned, the commands are only available on host-aware/-managed devices. The specific commands are: * REPORT ZONES, for information on disk layout and zone status (such as the ''write pointer'', the last-written position in a sequential zone) ** SMR or similar zones are ''sequential required'' on host-managed drives, but ''sequential preferred'' on host-aware ones. * RESET WRITE POINTER, for rewinding the write pointer so a sequential zone becomes empty * OPEN ZONE, for explicitly declaring access to a zone and locking the associated firmware resources * CLOSE ZONE, to unlock an opened zone * FINISH ZONE, fill a zone full and make it readable 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: * Host-aware or device-managed drives are marked as normal block devices ( SCSI 00h), so they can be recognized as a normal hard drive. ** A ZONED field shows whether the drive is device-managed, host-aware, or neither. This is found in the SCSI Block Device Characteristics VPD page and the ATA capabilities log page. * Host-managed drives use a new device type (SCSI 14h). Only ZAC/ZBC-aware computers can detect and use them. 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. The ZONED field has been retired following a proposal from
Western Digital Western Digital Corporation (WDC, commonly known as Western Digital or WD) is an American computer drive manufacturer and data storage company, headquartered in San Jose, California. It designs, manufactures and sells data technology produc ...
. The zoned interface is also useful for
flash storage Flash memory is an electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed. The two main types of flash memory, NOR flash and NAND flash, are named for the NOR and NAND logic gates. Both use ...
. ZNS spec has been released by the
NVM Express NVM Express (NVMe) or Non-Volatile Memory Host Controller Interface Specification (NVMHCIS) is an open, logical-device interface specification for accessing a computer's non-volatile storage media usually attached via PCI Express (PCIe) bus. The ...
organization.


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 Dropbox is a file hosting service operated by the American company Dropbox, Inc., headquartered in San Francisco, California, U.S. that offers cloud storage, file synchronization, personal cloud, and client software. Dropbox was founded in 2007 ...
's ''Magic Storage'' system, which runs the on-disk ''extents'' in an append-only way. Device-managed SMR disks have also been marketed as "Archive HDDs" due to this property. A number of file systems in
Linux Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, w ...
are or can be tuned for SMR drives: *
F2FS F2FS (Flash-Friendly File System) is a flash file system initially developed by Samsung Electronics for the Linux kernel. The motive for F2FS was to build a file system that, from the start, takes into account the characteristics of NAND flash ...
, originally designed for flash media, has a Zoned Block Device (ZBD) mode. It can be used on host-managed drives with conventional zones for metadata. *
Btrfs Btrfs (pronounced as "better F S", "butter F S", "b-tree F S", or simply by spelling it out) is a computer storage format that combines a file system based on the copy-on-write (COW) principle with a logical volume manager (not to be confused ...
had ZBD support added in Linux kernel 5.12, and it already writes mostly sequentially due to the CoW nature. *
ext4 ext4 (fourth extended filesystem) is a journaling file system for Linux, developed as the successor to ext3. ext4 was initially a series of backward-compatible extensions to ext3, many of them originally developed by Cluster File Systems for ...
can be experimentally tuned to write more sequentially.
Theodore Ts'o Theodore (Ted) Yue Tak Ts'o (曹子德) (born 1968) is an American software engineer mainly known for his contributions to the Linux kernel, in particular his contributions to file systems. He is the Secondary developer and maintainer of e2fs ...
and Abutalib Aghayev gave a talk in 2017 on their ''ext4-lazy''. Seagate also has a more radical "SMRFFS" extension from 2015 that makes use of the ZBC/ZAC commands. * For other filesystems, the Linux device mapper has a ''dm-zoned'' target that maps a host-managed drive into a random-writable drive. Linux kernels since 4.10 can perform this task without ''dm''. A ' from 2019 exposes the zones as files for easier access. In addition to Linux, FreeBSD has protocol-level support for host-managed SMR drives. , neither Windows nor MacOS supports the ZBC/ZAC commands required for such drives to work.


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. Adjusting the SMR/PMR setting helps suit the drive to the current workload of "hot" and "cold" data.


See also

*
Heat-assisted magnetic recording Heat-assisted magnetic recording (HAMR) (pronounced "''hammer")'' is a magnetic storage technology for greatly increasing the amount of data that can be stored on a magnetic device such as a hard disk drive by temporarily heating the disk materia ...
(HAMR) *
Patterned media Patterned media (also known as bit-patterned media or BPM) is a potential future hard disk drive technology to record data in magnetic islands (one bit per island), as opposed to current hard disk drive technology where each bit is stored in with ...
*
Two-dimensional magnetic recording Two-dimensional magnetic recording (TDMR) is a technology introduced in 2017 in hard disk drives (HDD) used for computer data storage. Most of the world's data is recorded on HDDs, and there is continuous pressure on manufacturers to create greate ...
*
Log-structured file system A log-structured filesystem is a file system in which data and metadata are written sequentially to a circular buffer, called a log. The design was first proposed in 1988 by John K. Ousterhout and Fred Douglis and first implemented in 1992 by ...
, a type of file system optimized for append-only media


References


External links


LSFMM: A storage technology update
LWN.net LWN.net is a computing webzine with an emphasis on free software and software for Linux and other Unix-like operating systems. It consists of a weekly issue, separate stories which are published most days, and threaded discussion attached to ...
, April 23, 2013, by Jonathan Corbet
SMR Impact on Linux Storage Subsystem
HGST, 2014, by Jorge Campello and Adam Manzanares
Layout optimisation for using XFS on host-managed SMR drives
March 2015
SMR in Linux Systems
Seagate, March 18, 2015, by Adrian Palmer
Host-Aware SMR
Seagate, November 10, 2014, by Timothy Feldman
Addressing Shingled Magnetic Recording drives with Linear Tape File System
SNIA SDC 2013, by Albert Chen and Jim Malina
Host Managed SMR
SNIA SDC 2015, by Albert Chen, Jim Malina and TK Kato


Specifications

* ZAC/ZBC version 1 (published 2016) ** T10
Information technology - Zoned Block Commands (ZBC)
2014, Draft revision 1 ** T13
Information technology - Zoned Device ATA Command Set (ZAC)
Draft revision 5, 2015 * ZAC/ZBC version 2 (under development as of 2020){{anchor, zbc2-spec ** T10
Information technology - Zoned Block Commands - 2 (ZBC-2)
2020, Draft revision 04a ** T13, ZAC-2, PDF unavailable Computer storage technologies Hard disk drives