Linux 7.3 UBI Adds Support For Per-Device Wear-Leveling Thresholds

Written by Michael Larabel in Linux Storage on 29 August 2026 at 06:21 AM EDT. Add A Comment
LINUX STORAGE
The Unsorted Block Images "UBI" layer in the Linux kernel for NAND flash memory tracking and wear leveling finally has the notion of per-device wear-leveling thresholds.

Merged for Linux 7.3 is UBI support for per-device wear-leveling thresholds. Until now the wear-leveling threshold for UBI has been a compile-time constant for all UBI devices on the system. Ran Hongyun of Huawei finally addressed this obstacle with per-device threshold support.

For systems with multiple NAND flashes with differing erase lifetimes, a new "wl_threshold" option for the ubi.mtd module parameter can be set at boot-time for specifying the wear-leveling threshold for each of the NAND flashes on the system. Or a value of zero to revert back to using the compile-time constant.

UBI per device threshold option


One would have thought per-device wear-leveling thresholds for UBI devices would have been supported years ago, but in any event it's now in place with Linux 7.3. The code was merged on Friday via this pull request.
Related News
About The Author

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week