Skip to content

Technology card

Shipping

Wear Leveling

Wear levelling

How dynamic allocation and static relocation share flash wear, and why balancing erase counts can add internal writes.

Glossary entry on hesela.dev · JSON record · Dynamic wear leveling · Static wear leveling

On this page6 sections

In one minute

Wear leveling is flash management that distributes program/erase activity among blocks to reduce uneven wear.

Flash endurance is limited at the physical-cell level. Moving writes among blocks can avoid exhausting a small region while other usable blocks remain lightly worn; it does not increase the intrinsic endurance of each cell. Address mapping lets the host address stay the same when the physical location changes. [4]

Dynamic wear leveling favors less-worn free blocks for incoming writes. Blocks containing unchanging data remain occupied, so free-block selection alone cannot bring them into circulation. Static wear leveling additionally moves such cold data. Here cold means infrequently updated, not physically colder. [3]

Linux UBI provides a concrete raw-flash example: it moves data from a low-erase used physical eraseblock into a higher-erase free block. The former block can then be erased and reused. UBI documents bit-flip-triggered scrubbing separately, even though both operations use data-movement machinery. [6]

Reclamation, balancing and refresh answer different questions: is space reusable, where is wear accumulating, and does stored data need attention? UBI sits below UBIFS and still exposes flash erase semantics; its implementation is not a description of every managed SSD controller. [7] [6]

A threshold is not an endurance rating. In the pinned UBI code, ordinary balancing requires the selected free-destination minus used-source erase count to be at least the configured threshold. Its build-time default is 4096; this is neither a universal SSD setting nor a continuously enforced global bound. [6] [1]

Macronix also warns that the address-translation table needs wear management: distributing user-data writes cannot protect a mapping block that is repeatedly overwritten. Include metadata in the wear accounting, not only the user-data area. [4]

Static migration consumes internal writes. Jiao and colleagues show how relocation thresholds and workload skew affect the tradeoff between erase-count balance and write amplification in FTLSim simulations. Their study does not justify a universal recommendation to disable wear leveling on commercial drives. [5]

The 2025 extension by Jiao and Yang evaluates three static policies: OBP, DP and PWL. Its lifetime simulation replays eleven traces in a 256 GiB logical space, with 284 GiB physical capacity and an assumed 500-erase retirement threshold. This is a model setting, not a measured limit for all QLC NAND. [2]

Capacity variance changes the comparison: the simulated device may shrink its exported space toward the workload footprint. Section 5 assumes that the file system discards unneeded data and treats contiguous-address maintenance overhead as negligible. A proposed shrinking interface is not a firmware switch on an ordinary fixed-capacity SSD. [2]

In the 2022 simulation, the reported 11.49 write-amplification factor is the overall value, including garbage collection; section 2.2 attributes 5.4 to wear leveling. Those are different counters, not two estimates of one quantity. [5]

Keep the write counters separate. The 2025 paper's figure 5 reports wear-leveling-induced overhead, excluding garbage-collection copies; it is not total device write amplification. [2]

Hesela's interpretation of the evidence: dividing a device's rated TBW by its logical capacity counts host full-drive writes. It does not directly measure a physical block's P/E endurance, because internal write amplification, spare capacity and uneven wear intervene. Do not treat the paper's figure 1 proxy as a measured cell-endurance curve. [2]

Placement must respect retention as well as wear. Macronix warns that moving persistent code into a block near its wear limit can be counterproductive. An average erase count cannot by itself establish that all blocks safely retain their contents. [4]

When assessing a device, ask what its counters count, which blocks share a balancing pool, and whether firmware exposes internal writes or only host writes. Compare erase-count spread and write amplification under a documented workload; neither metric alone establishes remaining service life.

Balancing mechanisms

The distinction is whether unchanged data can be relocated for balancing, not whether the product has a static or dynamic address map.

Two wear-leveling mechanisms

Dynamic
Placement decisionChoose among eligible free blocks for new writes. [3]
TradeoffCold occupied blocks may remain outside the rotation.
Static
Placement decisionRelocate cold data to release lightly worn blocks. [6]
TradeoffMigration adds work; destination retention still matters. [4] [5]

Uncertainty notes

  • Source-based mechanism overview; no lifetime multiplier or new device measurement is claimed.
  • The vendor notes explain mechanisms, while the 2022 paper evaluates specified simulated policies. Neither supplies a universal modern-SSD endurance rating.

Sources

  1. 01Linux UBI Kconfig at c7decec2f2d2ab0366567f9e30c0e1418cece43f: MTD_UBI_WL_THRESHOLD. · accessed 2026-11-05
  2. 02Jiao and Yang. Wear Leveling in SSDs Considered Harmful: A Case for Capacity Variance. Electronics 14, 4169 (2025), sections 3-5. DOI 10.3390/electronics14214169. · accessed 2026-10-18
  3. 03KIOXIA. Understanding Wear Leveling in NAND Flash Memory. February 2023, revision 1.0, pp. 1-2. · accessed 2026-10-18
  4. 04Macronix. Wear Leveling in NAND Flash Memory. AN0289, revision 1, March 10, 2014, pp. 1-2. · accessed 2026-10-18
  5. 05Ziyang Jiao, Janki Bhimani and Bryan S. Kim. Wear Leveling in SSDs Considered Harmful. HotStorage 2022, sections 1-2. DOI 10.1145/3538643.3539750. · accessed 2026-10-18
  6. 06Linux UBI wear-leveling implementation at c7decec2f2d2ab0366567f9e30c0e1418cece43f: overview and actual worker candidate selection. · accessed 2026-10-18
  7. 07Linux kernel documentation: UBI File System, Introduction. · accessed 2026-10-18

Published by Hesela team

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Wear Leveling. Hesela. https://hesela.com/tech/wear-leveling/