论文标题
编译器定向投机性间歇计算
Compiler Directed Speculative Intermittent Computation
论文作者
论文摘要
本文介绍了COSPEC,这是一种新的体系结构/编译器共同设计方案,适用于能源收获系统中使用的商品订购处理器。为了实现崩溃的一致性而无需非常规架构支持,COSPEC的猜测假设不会发生电力故障,因此在商店缓冲区(SB)中将所有承诺的商店都放在了,就好像它们是投机性的,而在失误的情况下。 COSPEC编译器将给定的程序首先将其分为一系列可回收的代码区域,并考虑到SB大小,因此没有区域会溢出SB。当程序控制达到每个区域的末端时,猜测结果是成功的,因此将该区域的所有缓冲储存释放到NVM。如果在一个区域执行期间发生电力故障,则其所有投机商店都消失在挥发性SB中,即它们永远不会影响NVM中的程序状态。因此,在电力故障之后,可以通过一致的程序状态重新启动中断的区域。为了隐藏SB释放的延迟,即NVM在每个区域边界上都写入COSPEC,将当前区域的NVM与下一个区域的投机执行重叠。此类指令级别的平行性给出了在订购处理器之上的级别执行幻觉,在没有停电的情况下,速度超过1.2倍。我们对一组实际能量收集痕迹的实验频繁停机表明,COSPEC的表现平均超过了最先进的方案。
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.