Lengthening a computer memory's lifespan is important for e-waste and sustainability. Uneven wear of memory is a major barrier. The problem is becoming even more urgent as emerging memory such as phase-change memory is subject to even shorter lifespan. Various solutions have been proposed, but they either require complicated hardware extensions or apply only to certain program constructs such as loops. This research proposes a new method, dual-ring wear leveling. It takes inspiration from the natural law known as the ``golden ratio" and how it helps flower petals evenly receive sun lights. By modeling memory as two rings and combines the idea with existing memory management, garbage collection, the new solution offers an effective way to reduce memory wear and hence lengthen memory lifespan. It is deterministic, able to automatically adapt to memory size, requiring no hardware changes, and adding no slowdown to program executions.
翻译:延长计算机内存的使用寿命对于减少电子垃圾和实现可持续发展至关重要。内存磨损不均是主要障碍。随着相变存储器等新兴存储器面临更短寿命的问题,该问题变得愈发紧迫。已有多种解决方案被提出,但它们要么需要复杂的硬件扩展,要么仅适用于循环等特定程序结构。本研究提出了一种新方法——双环磨损均衡。该方法灵感来源于被称为“黄金比例”的自然法则及其帮助花瓣均匀接收阳光的原理。通过将内存建模为两个环,并将该思想与现有内存管理(垃圾回收)相结合,新方案提供了一种有效减少内存磨损从而延长内存寿命的方法。该方案具有确定性,能够自动适应内存大小,无需硬件改动,且不会增加程序执行的开销。