wear leveling (also written as wear levelling) is a technique 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.