Advanced Format Explained

Titlestyle:background:white;
Headerstyle:background:#ff6600;
Imagestyle:text-align:center;
Advanced Format (AF)
Header10:Generation-one standard
Data11:4096 (4 KiB) bytes per sector
Header20:Generation-one categories
Label22:512 emulation (512e)
Data22:4K physical sectors on the drive media with 512 byte logical configuration
Label24:4K native (4Kn)
Data24:4K physical sectors on the drive media and 4K configuration reported to the host
Label26:4K-ready host[1]
Data26:A host system which works equally well with legacy 512 as well as 512e hard disk drives
Header40:Year standard completed
Data41:March 2010
Header50:Created by
Data51:IDEMA Long Data Sector Committee, composed of Dell, Fujitsu (now Toshiba Storage Device Corporation), Hewlett-Packard, Hitachi Global Storage Technologies, IDEMA, LSI Corporation, Maxtor (now Seagate), Microsoft, Phoenix Technologies, Samsung, Seagate Technology, Western Digital

Advanced Format (AF) is any disk sector format used to store data on magnetic disks in hard disk drives (HDDs) that exceeds 528 bytes per sector, frequently 4096, 4112, 4160, or 4224-byte (4 KB) sectors. Larger sectors of an Advanced Format Drive (AFD) enable the integration of stronger error correction algorithms to maintain data integrity at higher storage densities.

History

The use of long data sectors was suggested in 1998 in a technical paper issued by the National Storage Industry Consortium (NSIC)[2] calling attention to the conflict between continuing increases in areal density and the traditional 512-byte-per-sector format used in hard disk drives.[3] Without revolutionary breakthroughs in magnetic recording system technologies, areal densities, and with them the storage capacities, hard disk drives were projected to stagnate.

The storage industry trade organization, International Disk Drive Equipment and Materials Association (IDEMA), responded by organizing the IDEMA Long Data Sector Committee in 2000, where IDEMA and leading hardware and software suppliers collaborated on the definition and development of standards governing long data sectors, including methods by which compatibility with legacy computing components would be supported. In August 2005, Seagate shipped test drives with 1K physical sectors to industry partners for testing.[4] In 2010, industry standards for the first official generation of long data sectors using a configuration of 4096 bytes per sector, or 4K, were completed. All hard drive manufacturers committed to shipping new hard drive platforms for desktop and notebook products with the Advanced Format sector formatting by January 2011.[5]

Advanced Format was coined to cover what was expected to become several generations of long-data-sector technologies, and its logo was created to distinguish long-data-sector–based hard disk drives from those using legacy 512-byte sector. Enterprise disks can be formatted with additional 8-byte Data Integrity Fields, resulting in a 520 or 528-byte physical sectors.[6]

Overview

Comparison of 512- and 4096-byte sector formats[7]
Description512-byte sector4096-byte sector
Gap, sync, address mark15 bytes
User data512 bytes4096 bytes
Error-correcting code50 bytes100 bytes
Total577 bytes4211 bytes
Efficiency88.7%97.3%
512-byte emulated device sector size
0 1 2 3 4 5 6 78 9 10 11 12 13 14 15
Physical sector 1 Physical sector 2

Generation-one Advanced Format, 4K sector technology, uses the storage surface media more efficiently by combining data that would have been stored in eight 512-byte sectors into one single sector that is 4096 bytes (4 KB) in length. Key design elements of the traditional 512-byte sector architecture are maintained, specifically, the identification and synchronization marks at the beginning and the error correction coding (ECC) area at the end of the sector. Between the sector header and ECC areas, eight 512-byte sectors are combined, eliminating the need for redundant header areas between each individual chunk of 512-byte data. The Long Data Sector Committee selected the 4K block length for the first generation AF standard for several reasons, including its correspondence to the paging size used by processors and some operating systems as well as its correlation to the size of standard transactions in relational database systems.[8]

Format efficiency gains resulting from the 4K sector structure range from 7 to 11 percent in physical platter space.[9] The 4K format provides enough space to expand the ECC field from 50 to 100 bytes to accommodate new ECC algorithms. The enhanced ECC coverage improves the ability to detect and correct processed data errors beyond the 50-byte defect length associated with the 512-byte sector legacy format.[10] The Advanced Format standard employs the same gap, sync and address mark configuration as the traditional 512-byte sector layout, but combines eight 512-byte sectors into one data field.[11]

Having a huge number of legacy 512-byte-sector–based hard disk drives shipped up to the middle of 2010, many systems, programs and applications accessing the hard disk drive are designed around the 512-byte-per-sector convention. Early engagement with the Long Data Sector Committee provided the opportunity for component and software suppliers to prepare for the transition to Advanced Format.

For example, Windows Vista, Windows 7, Windows Server 2008, and Windows Server 2008 R2 (with certain hotfixes installed) support 512e format drives (but not 4Kn),[12] as do contemporary versions of FreeBSD[13] [14] [15] and Linux.[16] [17] Mac OS X Tiger and onwards can use Advanced Format drives[18] and OS X Mountain Lion 10.8.2 additionally supports encrypting those. Windows 8 and Windows Server 2012 also support 4Kn Advanced Format. Oracle Solaris 10 and 11 support 4Kn and 512e hard disk drives for non-root ZFS file systems, while version 11.1 provides installation and boot support for 512e devices.[19] Prior to Windows Vista, Windows 2000 and Windows XP use 4096 bytes as default allocation unit size when use NTFS to format local hard disks, but do not align to 4KB boundaries.

Categories

Among the Advanced Format initiatives undertaken by the Long Data Sector Committee, methods to maintain backward compatibility with legacy computing solutions were also addressed. For this purpose, several categories of Advanced Format devices were created.

512 emulation (512e)

Many host computer hardware and software components assume the hard drive is configured around 512-byte sector boundaries. This includes a broad range of items including chipsets, operating systems, database engines, hard drive partitioning and imaging tools, backup and file system utilities as well as a small fraction of other software applications. In order to maintain compatibility with legacy computing components, many hard disk drive suppliers support Advanced Format technologies on the recording media coupled with 512-byte conversion firmware. Hard drives configured with 4096-byte physical sectors with 512-byte firmware are referred to as Advanced Format 512e, or 512 emulation drives. On 512e drives, one LBA is equal to 512 bytes.

The translation of the native 4096, 4112, 4160, or 4224-byte physical format (with 0, 8, 64, or 128-byte Data Integrity Fields) to a virtual 512, 520 or 528-byte increment is transparent to the entity accessing the hard disk drive. Read and write commands are issued to Advanced Format drives in the same format as legacy drives. However, during the read process, the Advanced Format hard drive loads the entire 4096-byte sector containing the requested 512-byte data into memory located on the drive. The emulation firmware extracts and re-formats the specific data into a 512-byte chunk before sending the data to the host. The entire process typically occurs with little or no degradation in performance.

The translation process is more complicated when writing data that is not a multiple of 4K or not aligned to a 4K boundary. In these instances, the hard drive must read the entire 4096-byte sector containing the targeted data into internal memory, integrate the new data into the previously existing data and then rewrite the entire 4096-byte sector onto the disk media. This operation, known as read-modify-write (RMW), can require additional revolution of the magnetic disks, resulting in a perceptible performance impact to the system user. Performance analysis conducted by IDEMA and the hard drive vendors indicates that approximately five to ten percent of all write operations in a typical business PC user environment may be misaligned and a RMW performance penalty incurred.[20] [21]

When using Advanced Format drives with legacy operating systems, it is important to realign the disk drive using software provided by the hard disk manufacturer. Disk realignment is necessary to avoid a performance degrading condition known as cluster straddling where a shifted partition causes filesystem clusters to span partial physical disk sectors. Since cluster-to-sector alignment is determined when creating hard drive partitions, the realignment software is used after partitioning the disk. This can help reduce the number of unaligned writes generated by the computing ecosystem. Further activities to make applications ready for the transition to Advanced Format technologies were spearheaded by the Advanced Format Technology Committee (formerly Long Data Sector Committee)[22] [23] and by the hard disk drive manufacturers.[24] [25] [26]

4K native (4Kn)

For hard disk drives working in the 4K native mode, there is no emulation layer in place, and the disk media directly exposes its 4096, 4112, 4160, or 4224-byte physical sector size to the system firmware and operating system. That way, the externally visible logical sectors organization of the 4K native drives is directly mapped to their internal physical sectors organization. Since April 2014, enterprise-class 4K native hard disk drives have been available on the market.[27] [28]

Readiness of the support for 4 KB logical sectors within operating systems differs among their types, vendors and versions. For example, Microsoft Windows supports 4K native drives since Windows 8 and Windows Server 2012 (both released in 2012) in UEFI.[29] 4K native drives may work on older operating systems such as Windows 7, but cannot be used as boot drive.[30]

Linux supports 4K native drives since the Linux kernel version 2.6.31 and version 2.17 (released in 2009 and 2010, respectively).[31] [32] [33]

The color version of the logo indicating a 4K native drive is somewhat different from the 512e logo, featuring four rounded corners, a blue background, and text "4Kn" at the center of the logo.[34]

See also

External links

Notes and References

  1. Web site: Advanced Format Definitions, Abbreviations, and Conventions. IDEMA. March 13, 2012. https://web.archive.org/web/20120316161832/http://www.idema.org/?page_id=2153. 2012-03-16. live.
  2. Web site: Home- INSIC Information Storage Industry Consortium . INSIC . 2014-03-12 . https://web.archive.org/web/20140312224436/http://insic.org/ . 2014-03-12 . live .
  3. Web site: The Advent of Advanced Format . 2013-11-18 . IDEMA . https://web.archive.org/web/20120510044435/http://www.idema.org/?page_id=2369 . 2012-05-10 . live.
  4. Web site: Transition to Advanced Format 4K Sector Hard Drives . Seagate . 2014-12-15 . https://web.archive.org/web/20141220174659/http://www.seagate.com/as/en/tech-insights/advanced-format-4k-sector-hard-drives-master-ti/ . 2014-12-20 . live .
  5. Web site: Advanced Format – The Migration to 4K Sectors . Seagate Technology . June 27, 2011 . https://web.archive.org/web/20110519054645/http://www.seagate.com/ww/v/index.jsp?locale=en-US&name=advanced-format-migration-to-4k-tpc&vgnextoid=746f43fce2489210VgnVCM1000001a48090aRCRD . 19 May 2011.
  6. Web site: Linux Data Integrity . https://web.archive.org/web/20150109235547/https://oss.oracle.com/~mkp/docs/lpc08-data-integrity.pdf . live . 30 August 2008 . 14 December 2020 . 9 January 2015 . Martin K. Petersen . . 7 . Most disk drives use 512-byte sectors. [...] Enterprise drives (Parallel SCSI/SAS/FC) support 520/528 byte 'fat' sectors..
  7. Book: Mueller, Scott . 2013 . Upgrading and Repairing PCs . Que Publishing . 472–473 . 978-0789750006. 21st .
  8. Web site: Smith . Ryan . . Western Digital's Advanced Format: The 4K Sector Transition Begins . 18 December 2009 . 14 December 2020 . https://web.archive.org/web/20201228122738/https://www.anandtech.com/show/2888 . 28 December 2020 . bot: unknown .
  9. Web site: Swinburne . Richard . The Facts: 4K Advanced Format Hard Disks . bit-tech.net . April 1, 2010 . March 13, 2012 . https://web.archive.org/web/20120306003308/http://www.bit-tech.net/hardware/storage/2010/04/01/the-facts-4k-advanced-format-hard-disks/1 . 2012-03-06 . live .
  10. Martin . Hassner . Grochowski, Ed . 4K Byte-Sector HDD-Data Format Standard . Windows Hardware Engineering Conference . May 31, 2005 . March 13, 2012 . dead . https://web.archive.org/web/20120328024030/http://bigsector.org/_smartsite/modules/local/data_file/show_file.php?cmd=download&data_file_id=1259 . March 28, 2012 .
  11. Web site: Advanced Format in Legacy Infrastructures: More Transparent than Disruptive . 2011 . 2013-11-05 . Curtis E. Stevens . idema.org . https://web.archive.org/web/20131105222506/http://www.idema.org/wp-content/uploads/downloads/2011/12/AF-in-Legacy-Infrastructures-SDC2011_IDEMA-AF.pdf . 2013-11-05 . live.
  12. Web site: Advanced format (4K) disk compatibility update (Windows). November 28, 2012. January 3, 2013. https://web.archive.org/web/20130111233631/http://msdn.microsoft.com/en-us/library/windows/desktop/hh848035(v=vs.85).aspx. 2013-01-11. live.
  13. Web site: The arrow of time – FreeBSD on 4K sector drives . Ivoras.net . 2014-03-12 . https://web.archive.org/web/20140316203919/http://ivoras.net/blog/tree/2011-01-01.freebsd-on-4k-sector-drives.html . 2014-03-16 . live .
  14. Web site: 2.7. Allocating Disk Space . Freebsd.org . 2014-03-12 . https://web.archive.org/web/20140320034259/http://www.freebsd.org/doc/handbook/bsdinstall-partitioning.html . 2014-03-20 . live .
  15. Web site: Disk Setup On FreeBSD . Wonkity.com . 2013-06-24 . 2014-03-12 . https://web.archive.org/web/20140712013311/http://www.wonkity.com/~wblock/docs/html/disksetup.html . 2014-07-12 . live .
  16. Web site: 4K-sector drives and Linux . 2010-03-09 . 2013-10-04 . Jonathan Corbet . . https://web.archive.org/web/20131004230421/https://lwn.net/Articles/377895/ . 2013-10-04 . live.
  17. Web site: Linux Storage Topology and Advanced Features . 2009-11-24 . 2013-10-04 . Martin K. Petersen . . https://web.archive.org/web/20131005013021/http://mkp.net/pubs/storage-topology.pdf . 2013-10-05 . live.
  18. Web site: How to install a WD Advanced Format Drive on a non-Windows Operating System. January 19, 2012. April 12, 2013. https://web.archive.org/web/20140527032214/http://wdc.custhelp.com/app/answers/detail/a_id/5655/~/how-to-install-a-wd-advanced-format-drive-on-a-non-windows-operating-system. May 27, 2014. dead.
  19. Web site: Oracle Solaris 11.1 Administration: Devices and File Systems . 2014-03-06 . . https://web.archive.org/web/20140306005628/http://docs.oracle.com/cd/E26502_01/html/E29006/gdgtz.html#gizbc . 2014-03-06 . live.
  20. Web site: 4K Sector Disk Drives: Transitioning to the Future with Advanced Format Technologies . 2013-10-24 . Michael E. Fitzpatrick . Toshiba . https://web.archive.org/web/20141006071359/http://storage.toshiba.com/docs/services-support-documents/toshiba_4kwhitepaper.pdf . 2014-10-06 . live.
  21. Web site: Linux and 4K disk sectors . 2009-03-11 . 2013-10-24 . Goldwyn Rodrigues . . https://web.archive.org/web/20131005191108/http://lwn.net/Articles/322777/ . 2013-10-05 . live.
  22. Web site: About the Advanced Format Technology Committee (formerly LDS Committee) . . 14 December 2020 . https://web.archive.org/web/20160330222036/http://idema.org/?page_id=2012 . 30 March 2016 . live.
  23. Web site: 4kB Data Sector Update - IDEMA 4kB Technical Committee . . September 2008 . 14 December 2020 . https://web.archive.org/web/20160811075536/http://www.snia.org/sites/default/orig/sdc_archives/2008_presentations/tuesday/MikeFitzpatrick_IDEMA_4kB_Sector.pdf . 11 August 2016 . live.
  24. Web site: SmartAlign Technology for Advanced Format Hard Drives . . 2010 . 14 December 2020 . https://web.archive.org/web/20101129221035/https://www.seagate.com/docs/pdf/en-GB/whitepaper/tp615_smartalign_for_af_4k.pdf . 29 November 2010 . live.
  25. Web site: Download the Hitachi Align Tool . . 2010 . 14 December 2020 . https://web.archive.org/web/20110623202837/http://www.hitachigst.com/internal-drives/advanced-format-drives . 23 June 2011.
  26. Web site: Advanced Format Software . . 2011 . 14 December 2020 . https://web.archive.org/web/20111229143736/http://support.wdc.com/product/download.asp?groupid=805 . 29 December 2011.
  27. Web site: Enterprise Capacity 3.5 HDD Data Sheet . April 23, 2014 . August 10, 2014 . . PDF . 2 . https://web.archive.org/web/20140812220618/http://www.seagate.com/www-content/product-content/enterprise-hdd-fam/enterprise-capacity-3-5-hdd/constellation-es-4/en-us/docs/enterprise-capacity-3-5-hdd-ds1791-4-1404us.pdf#page=2 . 2014-08-12 . live.
  28. Web site: WD Re Datacenter Distribution Specification Sheet . January 21, 2016 . February 14, 2016 . . PDF . 2 . https://web.archive.org/web/20150906040839/http://www.wdc.com/wdproducts/library/SpecSheet/ENG/2879-800066.pdf#page=2 . 2015-09-06 . live.
  29. Web site: Microsoft support policy for 4K sector hard drives in Windows . October 24, 2013 . . https://web.archive.org/web/20110819073311/http://support.microsoft.com/kb/2510009 . 2011-08-19 . live.
  30. Web site: The brave new world of 4Kn hard disks: A test with Windows (XP x64), Truecrypt, HDTune and others (Update: Now with Linux, XP 32-Bit) – The GAT at XIN.at.
  31. Web site: Linux kernel 2.6.31, Section 11. Block . September 9, 2009 . October 10, 2015 . kernelnewbies.org . https://web.archive.org/web/20151105025721/http://kernelnewbies.org/Linux_2_6_31#head-5a6f57dc036c513bd60426fba4c6f5c13eb6cee1 . 2015-11-05 . live.
  32. Web site: util-linux-ng 2.17 Release Notes . January 8, 2010 . October 10, 2015 . kernel.org . https://web.archive.org/web/20160304113854/https://www.kernel.org/pub/linux/utils/util-linux/v2.17/v2.17-ReleaseNotes . 2016-03-04 . live.
  33. Web site: Linux_2_6_37-DriversArch - Linux Kernel Newbies, Section 2.3. STORAGE . 2024-03-23 . kernelnewbies.org.
  34. Web site: Advanced Format Logo Overview. IDEMA. 2014-01-10. https://web.archive.org/web/20131019123607/http://www.idema.org/?page_id=2900. 2013-10-19. live.