随机引导的推测间歇计算
Compiler Directed Speculative Intermittent Computation
摘要:
本文提出了CoSpec,一种新的架构/编译器协同设计方案,适用于商品在能源收集系统中使用的顺序处理器。为了在不需要非常规架构支持的情况下实现崩溃一致性,CoSpec利用假设电源故障不会发生的推测,从而将所有提交的存储保存在存储缓冲区(SB)中,就好像它们是推测性的,以防误推测。CoSpec编译器首先将给定的程序划分为一系列可恢复的代码区域,并考虑SB大小,以便没有区域溢出SB。当程序控制到达每个区域的末尾时,推测结果是成功的,从而将该区域的所有缓冲存储释放到NVM。如果在区域的执行期间发生电源故障,则其所有推测性存储在易失性SB中消失,即,它们从不影响NVM中的程序状态。因此,中断的区域可以在电源故障之后以一致的程序状态重新启动。为了隐藏SB释放的延迟,即,在每个区域边界处,CoSpec实质上是NVM写入,其将当前区域的NVM写入与下一区域的推测性执行重叠。这种指令级并行给人一种在有序处理器上执行乱序执行的错觉,在没有断电的情况下,实现了超过1.2倍的加速。我们在一组频繁中断的真实能量收集跟踪上的实验表明,CoSpec的性能平均比最先进的方案高1.8~ 3倍。
英文摘要:
This paper presents CoSpec, a new architecture/compiler co-design scheme that works for commodity in-order processors used in energy-harvesting systems. To achieve crash consistency without requiring unconventional architectural support, CoSpec leverages speculation assuming that power failure is not going to occur and thus holds all committed stores in a store buffer (SB), as if they were speculative, in case of mispeculation. CoSpec compiler first partitions a given program into a series of recoverable code regions with the SB size in mind, so that no region overflows the SB. When the program control reaches the end of each region, the speculation turns out to be successful, thus releasing all the buffered stores of the region to NVM. If power failure occurs during the execution of a region, all its speculative stores disappear in the volatile SB, i.e., they never affect program states in NVM. Consequently, the interrupted region can be restarted with consistent program states in the wake of power failure. To hide the latency of the SB release, i.e., essentially NVM writes, at each region boundary, CoSpec overlaps the NVM writes of the current region with the speculative execution of the next region. Such instruction level parallelism gives an illusion of out-of-order execution on top of the in-order processor, achieving a speedup of more than 1.2X when there is no power outage. Our experiments on a set of real energy harvesting traces with frequent outages demonstrate that CoSpec outperforms the state-of-the-art scheme by 1.8~3X on average.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。