Memory Carousel: LLVM-Based Bitwise Wear Leveling for Nonvolatile Main Memory
Abstract
Emerging non-volatile memory yields, alongside many advantages, technical shortcomings, such as reduced cell lifetime. Although many wear-leveling approaches exist to extend the lifetime of such memories, usually a trade-off for the granularity of wear-leveling has to be made. Due to iterative write schemes (repeatedly sense and write), wear-out of memory in certain systems is directly dependent on the written bit value and thus can be highly imbalanced, requiring dedicated bit-wise wear-leveling. Such a bit-wise wear-leveling so far has only be proposed together with a special hardware support. However, if no dedicated hardware solutions are available, especially for commercial off-the-shelf systems with non-volatile memories, a software solution can be crucial for the system lifetime. In this work, we propose entirely software-based bit-wise wearleveling, where the position of bits within CPU words in main memory is rotated on a regular basis. We leverage the LLVM intermediate representation to adjust load and store operations of the application with a custom compiler pass. Experimental evaluation shows that the lifetime by applying local rotation within the CPU word can be extended by a factor of up to 21×. We also show that our method can incorporate with coarser-grained wear-leveling, e.g. on block granularity and assist achievement of higher lifetime improvements.
BibTeX
@article{holscher2023memory,
author = {Nils Hölscher and Christian Hakert and Hassan Nassar and Kuan-Hsun Chen and Lars Bauer and Jian-Jia Chen and Jörg Henkel},
title = {{Memory Carousel: LLVM-Based Bitwise Wear Leveling for Nonvolatile Main Memory}},
journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
year = {2023},
doi = {10.1109/tcad.2022.3228897},
}Ask Althea to put this paper to the test.
Loading related content...