arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1710.10746cs.AR
收藏

Louvre:使用版本控制实现发布一致性的轻量级排序

Louvre: Lightweight Ordering Using Versioning for Release Consistency

Pranith Kumar, Prasun Gera, Hyojong Kim, Hyesoon Kim

摘要:

栅栏指令是确保弱一致性共享存储器多核处理器中的一致性的基本原语。这些指令的执行成本是显著的,并且给并行程序增加了不小的开销。在一个天真的架构实现中,我们通过重排序缓冲区中的条目来跟踪围栏所施加的排序约束,并且其执行开销需要停止处理器的流水线,直到存储缓冲区被耗尽,并且还保守地使推测性加载无效。这些操作会在程序中执行以下指令时产生级联效应,从而增加开销。我们发现这些操作过于严格,可以进一步放松,从而允许积极的优化。目前的工作提出了一个轻量级的机制,我们分配排序标签,称为版本,加载和存储指令时,他们驻留在加载/存储队列和写缓冲区。分配给存储器访问的版本允许我们充分利用弱一致性模型允许的松弛,并以满足模型的排序约束的方式限制其执行。我们利用通过分配的版本捕获的信息,以减少等待存储缓冲区耗尽所造成的停顿,并避免不必要的挤压推测性加载,从而最大限度地减少重新执行的惩罚。该方法对于采用单向栅栏指令的发布一致性模型特别有效。我们表明,这种机制减少了39.6%的排序指令延迟,并提高了11%的程序性能平均超过基线实现。

英文摘要:

Fence instructions are fundamental primitives that ensure consistency in a weakly consistent shared memory multi-core processor. The execution cost of these instructions is significant and adds a non-trivial overhead to parallel programs. In a naive architecture implementation, we track the ordering constraints imposed by a fence by its entry in the reorder buffer and its execution overhead entails stalling the processor's pipeline until the store buffer is drained and also conservatively invalidating speculative loads. These actions create a cascading effect of increased overhead on the execution of the following instructions in the program. We find these actions to be overly restrictive and that they can be further relaxed thereby allowing aggressive optimizations. The current work proposes a lightweight mechanism in which we assign ordering tags, called versions, to load and store instructions when they reside in the load/store queues and the write buffer. The version assigned to a memory access allows us to fully exploit the relaxation allowed by the weak consistency model and restricts its execution in such a way that the ordering constraints by the model are satisfied. We utilize the information captured through the assigned versions to reduce stalls caused by waiting for the store buffer to drain and to avoid unnecessary squashing of speculative loads, thereby minimizing the re-execution penalty. This method is particularly effective for the release consistency model that employs uni-directional fence instructions. We show that this mechanism reduces the ordering instruction latency by 39.6% and improves program performance by 11% on average over the baseline implementation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑