Wear leveling

Wear leveling (also written as wear levelling) is a technique[1] for prolonging the service life of some kinds of erasable computer storage media, such as flash memory, which is used in solid-state drives (SSDs) and USB flash drives, and phase-change memory. There are several wear leveling mechanisms that provide varying levels of longevity enhancement in such memory systems.[2][3]

The term preemptive wear leveling (PWL) has been used by Western Digital to describe their preservation technique used on hard disk drives (HDDs) designed for storing audio and video data.[4] However, HDDs generally are not wear-leveled devices in the context of this article.

Rationale

EEPROM and flash memory media have individually erasable segments, each of which can be put through a limited number of erase cycles before becoming unreliable. This is usually around 3,000/5,000 cycles[5][6] but many flash devices have one block with a specially extended life of 100,000+ cycles that can be used by the Flash memory controller to track wear and movement of data across segments. Erasable optical media such as CD-RW and DVD-RW are rated at up to 1,000 cycles (100,000 cycles for DVD-RAM media).

Wear leveling attempts to work around these limitations by arranging data so that erasures and re-writes are distributed evenly across the medium. In this way, no single erase block prematurely fails due to a high concentration of write cycles.[7] In flash memory, a single block on the chip is designed for longer life than the others so that the memory controller can store operational data with less chance of its corruption.[3][8]

Conventional file systems such as FAT, UFS, HFS/HFS+, EXT, and NTFS were originally designed for magnetic disks and as such rewrite many of their data structures (such as their directories) repeatedly to the same area. When these systems are used on flash memory media, this becomes a problem. The problem is aggravated by the fact that some file systems track last-access times, which can lead to file metadata being constantly rewritten in-place.[9]

Types

There are three basic types of wear leveling mechanisms used in flash memory storage devices:[2]

No wear leveling

A flash memory storage system with no wear leveling will not last very long if data is written to the flash. Without wear leveling, the underlying flash controller must permanently assign the logical addresses from the operating system (OS) to the physical addresses of the flash memory. This means that every write to a previously written block must first be read, erased, modified, and re-written to the same location. This approach is very time-consuming and frequently written locations will wear out quickly, while other locations will not be used at all. Once a few blocks reach their end of life, such a device becomes inoperable.[2]

Dynamic wear leveling

The first type of wear leveling is called dynamic wear leveling and it uses a map to link logical block addresses (LBAs) from the OS to the physical flash memory. Each time the OS writes replacement data, the map is updated so the original physical block is marked as invalid data, and a new block is linked to that map entry. Each time a block of data is re-written to the flash memory, it is written to a new location. However, flash memory blocks that never get replacement data would sustain no additional wear, thus the name comes only from the dynamic data being recycled. Such a device may last longer than one with no wear leveling, but there are blocks still remaining as active even though the device is no longer operable.[2][3]

Static wear leveling

The other type of wear leveling is called static wear leveling which also uses a map to link the LBA to physical memory addresses. Static wear leveling works the same as dynamic wear leveling except the static blocks that do not change are periodically moved so that these low usage cells are able to be used by other data. This rotational effect enables an SSD to continue to operate until most of the blocks are near their end of life.[2][3]

Global wear leveling

Both dynamic and static wear leveling are implemented at the local level. This simply means that in a multi-chip product, every chip is managed as a single resource. The number of defective blocks in different chips within a NAND flash memory varies: a given chip could have all its data blocks worn out while another chip in the same device could have all its blocks still active. Global wear leveling addresses this problem by managing all blocks from all chips in the flash memory together―in a single pool. It ensures that all the cells in all the chips within the product are worn out evenly. [10][11]

Comparison

The following table compares static and dynamic wear leveling:[3]

Item Static Dynamic
Endurance Longer life expectancy Shorter life expectancy
Performance Slower Faster
Design complexity More complex Less complex
Typical use SSDs,[2]
industrial-grade flash drives[12]
Consumer-grade flash drives

Techniques

There are several techniques for extending the media life:

  • A checksum or error-correcting code can be kept for each block or sector in order to detect errors or correct errors.
  • A pool of overprovisioned reserve space can also be kept. When a block or sector does fail, future reads and writes to it can be redirected to a replacement in that pool.
  • Blocks or sectors on the media can be tracked in a least frequently used (LFU) queue. The data structures for the queue itself must either be stored off-device or in such a way that the space it uses is itself wear-leveled or, in the case of flash memory, in a block with a specially extended life. However, usual cache algorithms are designed to manage the data flow into and out of RAM-based caches, making them not directly suitable for flash-based storage devices as they have an asymmetrical nature – reads are usually much faster than writes, and erase operations can be performed only one "block" at a time.[13]
  • Garbage collection

On Secure Digital cards and USB flash drives,[12] techniques are implemented in hardware by a built-in microcontroller. On such devices, wear leveling is transparent, and conventional file system such as FAT can be used on them as-is.

Wear leveling can also be implemented in software by special-purpose file systems such as JFFS2 and YAFFS on flash media or UDF on optical media. All three are log-structured file systems in that they treat their media as circular logs and write to them in sequential passes. File systems which implement copy-on-write strategies, such as ZFS, also implement a form of wear leveling.

See also

References

  1. ^ U.S. patent 6,850,443 Wear leveling techniques for flash memory systems.
  2. ^ a b c d e f Perdue, Ken (2010-04-30). "Wear Leveling Application Note" (PDF). Spansion. Archived from the original (PDF) on 2011-06-07. Retrieved 12 August 2010.
  3. ^ a b c d e "USB Flash Wear-Leveling and Life Span" (PDF). Corsair. June 2007. Archived from the original (PDF) on 13 October 2007. Retrieved 27 July 2013.
  4. ^ "Western Digital AV Hard Drive Product Information". Western Digital. Archived from the original on 2010-01-02. Retrieved 2010-06-01.
  5. ^ "So you wanna buy a SSD? Read this first". Hardware Canucks. 10 January 2011.
  6. ^ "SSDs Shifting to 25nm NAND - What You Need to Know | StorageReview.com - Storage Reviews". www.storagereview.com. February 12, 2011. Archived from the original on December 5, 2019. Retrieved December 5, 2019.
  7. ^ "Algorithms and data structures for flash memories", E. Gal, and S. Toledo, ACM Computing Surveys, 2005
  8. ^ Arnd Bergmann (2011-02-18). "Optimizing Linux with cheap flash drives". LWN.net. Retrieved 2013-10-03.
  9. ^ Jonathan Corbet (2007-08-08). "Once upon atime". LWN.net. Retrieved 2014-01-21.
  10. ^ "Wear Leveling". Transcend. Retrieved 20 November 2019.
  11. ^ "Wear Leveling – Static, Dynamic and Global" (PDF). Cactus: 5. Retrieved 20 November 2019.
  12. ^ a b "Swissbit Industrial SD Memory Cards". Mouser Electronics. Retrieved 21 April 2017.
  13. ^ Qing Yang (2012-02-25). "Why Standard Cache Algorithms Won't Work For SSDs". velobit.com. Retrieved 2013-11-26.

Read other articles:

YamunaTaj Mahal di Agra, di pinggir sungai Yamuna.PetaLokasiCountryIndiaStateUttarakhand, Uttar Pradesh, Haryana, DelhiCitiesHaryana: Yamuna Nagar Uttar Pradesh: Kairana dan Baghpat Delhi: New Delhi Uttar Pradesh: Noida, Mathura, Vrindavan, Agra, Firozabad, Etawah, Auraiya dan PrayagrajCiri-ciri fisikHulu sungaiYamunotri - lokasiPuncak Banderpooch, distrik Uttarkashi, Uttarakhand, India - koordinat31°01′0.12″N 78°27′0″E / 31.0167000°N 78.45000°E...

 

Kura-kura pulau pinta Chelonoidis abingdonii Status konservasiPunahIUCN9017 Taksonomi$0Galápagos tortoiseSubspesiesChelonoidis abingdonii Günther, 1877 Distribusi lbs Kura-kura pulau pinta[1] (Chelonoidis abingdonii),[2][3] juga dikenal dengan nama kura-kura raksasa pinta,[2] kura-kura pulau abingdon,[4] atau kura-kura raksasa pulau abingdon,[2] adalah spesies kura-kura galapagos yang berasal dari Pulau Pinta. Spesies ini sudah mengalami kepun...

 

Campeonato Europeu de Ginástica Artística de 2009 Dados Sede Milão Maior vencedor Fabian Hambuchen Maior vencedora Ksenia Semenova Nação vencedora  Reino Unido ← Clermont-Ferrand 08 Birmingham 10 → O Campeonato Europeu de Ginástica Artística de 2009, foi realizado em Milão, na Itália, de 29 de março até 5 de abril, 2009. Eventos Individual geral masculino Solo masculino Barra fixa Barras paralelas Cavalo com alças Argolas Salto sobre a mesa masculino Ind...

طلال سلامة معلومات شخصية الميلاد 16 أكتوبر 1966 (57 سنة)  المدينة المنورة  مواطنة السعودية  الحياة الفنية الآلات الموسيقية صوت بشري  شركة الإنتاج روتانا  المهنة مغني،  وممثل  تعديل مصدري - تعديل   طلال سلامة (16 أكتوبر 1966-) مغني وعازف عود سعودي.[1] تعلم عزف ا...

 

Lambang Wangsa Bethmann Wangsa Bethmann (/ˈbɛtmɑːn/; BET-mahn) merupakan sebuah wangsa yang anggota laki-lakinya mencapai kesuksesan dalam usaha perdagangan atau keuangan. Ciri kekeluargaan ini dimulai pada abad pertengahan Jerman utara dan dilanjutkan dengan Bank Bethmann, yang didirikan oleh Johann Philipp Bethmann (1715–1793) dan Simon Moritz Bethmann (1721–1782) pada tahun 1748 yang segera masuk ke jajaran bank terkemuka di Jerman dan Eropa. Bahkan setelah penjualan bank tersebut ...

 

One PieceMusim 2Grand LineGambar sampul DVD volume pertama.Negara asalJepangJumlah episode16RilisSaluran asliFuji TelevisionTanggal tayang21 Maret (2001-03-21) –19 Agustus 2001 (2001-8-19)Kronologi Musim← SebelumnyaMusim 1 Selanjutnya →Musim 3 Daftar episode One Piece (musim 1–8) Musim kedua dari seri anime One Piece disutradarai oleh Kōnosuke Uda dan diproduksi oleh Toei Animation.[1] Musim ini berisi satu arc cerita tunggal, yaitu Gurando Rain Totsuny

This article is an orphan, as no other articles link to it. Please introduce links to this page from related articles; try the Find link tool for suggestions. (October 2022) Restaurant in Nevada, United StatesThe Golden TikiRestaurant informationEstablished2015 (2015)Owner(s)Lev GroupStreet address3939 Spring Mountain RdCityLas VegasCountyClarkStateNevadaPostal/ZIP Code89102CountryUnited StatesWebsitewww.thegoldentiki.com The Golden Tiki is a tiki bar located on Spring Mountain Road in L...

 

Species of flowering plant Chromolaena odorata Conservation status Secure (NatureServe)[1] Scientific classification Kingdom: Plantae Clade: Tracheophytes Clade: Angiosperms Clade: Eudicots Clade: Asterids Order: Asterales Family: Asteraceae Genus: Chromolaena Species: C. odorata Binomial name Chromolaena odorata(L.) R.M.King & H.Rob. Synonyms[2] Synonymy Chrysocoma maculata Vell. Chrysocoma maculata Vell. Conc. Chrysocoma volubilis Vell. Conc. Eupatorium brachia...

 

Chaitanya TamhaneLahir1 Maret 1987 (umur 36)Mumbai, MaharastraKebangsaanIndiaPekerjaanPenulis, Produser, Sutradara Chaitanya Tamhane (lahir 1 Maret 1987) adalah penulis dan sutradara film Marathi Court, sebuah film drama India 2015. Film tersebut diumumkan sebagai perwakilan resmi India untuk Academy Awards ke-88 dalam kategori Film Berbahasa Asing Terbaik.[1][2] Penghargaan Film Terbaik Court di Festival Sinema Independen Internasional Buenos Aires, 2015.[3] Refe...

Aircraft equipped with a boat hull for operation from water This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Flying boat – news · newspapers · books · scholar · JSTOR (July 2013) (Learn how and when to remove this template message) Short S23 C Class or Empire flying boat A PBM Mariner takes off in 1942 Dornie...

 

U.S. political event held in Chicago, Illinois 1864 Democratic National Convention1864 presidential election Nominees McClellan and PendletonConventionDate(s)August 29–31, 1864CityChicago, IllinoisVenueThe AmphitheaterCandidatesPresidential nomineeGeorge B. McClellan of New JerseyVice presidential nomineeGeorge H. Pendleton of Ohio‹ 1860 · 1868 › The 1864 Democratic National Convention was held at The Amphitheatre in Chicago, Illinois.[1] The Convention nomi...

 

العلاقات الأندورية التوفالية أندورا توفالو   أندورا   توفالو تعديل مصدري - تعديل   العلاقات الأندورية التوفالية هي العلاقات الثنائية التي تجمع بين أندورا وتوفالو.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدولتين: وجه المقارنة ...

2004 studio album by SupercarAnswerStudio album by SupercarReleasedFebruary 25, 2004GenreIndie rock, alternative rock, electronic rock, neo-psychedeliaLength59:55LabelKi/oon RecordsProducerSupercarSupercar chronology Highvision(2002) Answer(2004) Singles from Answer RecreationReleased: February 14, 2003[1] Last SceneReleased: January 28, 2004[1] Professional ratingsReview scoresSourceRatingAllMusic[2] Answer is the fifth and final non-compilation album by the J...

 

Shopping mall in Iowa, United StatesJordan Creek Town CenterLocationWest Des Moines, Iowa, United StatesCoordinates41°34′11″N 93°48′12″W / 41.569722°N 93.803333°W / 41.569722; -93.803333Opening dateAugust 4, 2004; 19 years ago (2004-08-04)DeveloperGeneral Growth PropertiesManagementBrookfield PropertiesOwnerBrookfield PropertiesNo. of stores and services150 [1]No. of anchor tenants12Total retail floor area2,000,000 sq ft ...

 

Fusillade de Winnenden. La fusillade de Winnenden, qui s'est déroulée le 11 mars 2009 au collège Albertville-Realschule, à Winnenden dans le Bade-Wurtemberg en Allemagne, a fait seize morts dont l'auteur des coups de feu. Cet événement est une des plus meurtrières tueries en milieu scolaire de l'histoire de l'Allemagne. Déroulement des faits Tim Kretschmer, l'auteur de la fusillade de Winnenden, est âgé de dix-sept ans, à la date des faits. Le 11 mars 2009, il se rend armé dans le...

Untuk film 2015, lihat Amar Akbar Anthony (film 2015). Amar Akbar AnthonyPoster rilis teatrikalSutradaraManmohan DesaiProduserManmohan DesaiDitulis olehKader Khan(dialog)Prayag Raj (permainan latar)K.K. Shukla (skenario)CeritaJeevanprabha M. Desai (cerita)Pushpa Sharma (gagasan cerita)PemeranVinod KhannaRishi KapoorAmitabh BachchanShabana AzmiNeetu SinghParveen BabiNirupa RoyPranJeevanNazir HussainRanjeetHelenPenata musikLaxmikant-PyarelalAnand Bakshi (lirik)SinematograferPeter PereiraP...

 

Defunct grocery chain based in Fort Wayne, Indiana, U.S. Scott's Food & PharmacyCompany typeSubsidiary of The Kroger Co.IndustryRetailFounded1954Defunct2016FateClosed or rebranded under the Kroger bannerProductsBakery, dairy, deli, frozen foods, grocery, meat, pharmacy, produce, seafood, snacks, liquorParentKroger Scott's Food & Pharmacy was a supermarket chain in the Fort Wayne, Indiana market. The company was once a wholly owned subsidiary of SuperValu, but was acquired by The Kroge...

 

У этого термина существуют и другие значения, см. Роман (значения). Содержание 1 Виды романов 1.1 По типу повествования 1.2 Разновидности романа 2 История термина 3 Проблема романа 4 Возникновение жанра 4.1 «Буржуазная эпопея» 4.2 Циклизация новелл 5 Из истории жанра 5.1 Дискуссии ...

Campeonato de Primera División 2016Primera División de Argentina Estadio Antonio Vespucio Liberti, sede de la final.Datos generalesSede  ArgentinaAsociación Asociación del Fútbol ArgentinoFecha 2016Fecha de inicio 5 de febreroFecha de cierre 29 de mayoEdición LXXXVII temporada y CXXXI torneo de Primera profesionalOrganizador Asociación del Fútbol ArgentinoPatrocinador AXION EnergyTV oficial Local: Fútbol Para Todos Internacional: ESPNTyC Sports Int.PalmarésCampeón LanúsSubcam...

 

Erwin Sánchez Informasi pribadiNama lengkap Erwin Sánchez FrekingTanggal lahir 19 Oktober 1969 (umur 54)Tempat lahir Santa Cruz, BoliviaTinggi 1,74 m (5 ft 8+1⁄2 in)Posisi bermain Gelandang serangKarier junior1981–1986 Tahuichi AcademyKarier senior*Tahun Tim Tampil (Gol)1987–1988 Destroyers 67 (23)1988–1990 Bolívar 34 (13)1990–1992 Benfica 15 (1)1991–1992 → Estoril (loan) 28 (8)1992–1997 Boavista 94 (21)1997–1998 Benfica 26 (6)1998–2004 Boavista...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!