首页> 外文会议>42th Annual International Symposium on Computer Architecture >Callback: Efficient synchronization without invalidation with a directory just for spin-waiting
【24h】

Callback: Efficient synchronization without invalidation with a directory just for spin-waiting

机译:回调:高效同步,而没有无效的目录,仅用于旋转等待

获取原文
获取原文并翻译 | 示例

摘要

Cache coherence protocols based on self-invalidation allow a simpler design compared to traditional invalidation-based protocols, by relying on data-race-free (DRF) semantics and applying self-invalidation on racy synchronization points exposed to the hardware. Their simplicity lies in the absence of invalidation traffic, which eliminates the need to track readers in a directory, and reduces the number of transient protocol states. With the addition of self-downgrade these protocols can become effectively directory-free. While this works well for race-free data, unfortunately, lack of explicit invalidations compromises the effectiveness of any synchronization that relies on races. This includes any form of spin waiting, which is employed for signaling, locking, and barrier primitives. In this work we propose a new solution for spin-waiting in these protocols, the callback mechanism, that is simpler and more efficient than explicit invalidation. Callbacks are set by reads involved in spin waiting, and are satisfied by writes (that can even precede these reads). To implement callbacks we use a small (just a few entries) directory-cache structure that is intended to service only these “spin-waiting” races. This directory structure is self-contained and is not backed up in any way. Entries are created on demand and can be evicted without the need to preserve their information. Our evaluation shows a significant improvement both over explicit invalidation and over exponential back-off, the state-of-the-art mechanism for self-invalidation protocols to avoid spinning in the shared cache.
机译:与传统的基于失效的协议相比,基于自我失效的高速缓存一致性协议通过依赖于无数据争用(DRF)语义并将自我失效应用于暴露于硬件的冗余同步点,可以实现比传统的基于失效的协议更简单的设计。它们的简单之处在于没有无效通信量,从而无需跟踪目录中的读取器,并减少了瞬态协议状态的数量。随着自我降级的增加,这些协议可以有效地摆脱目录的束缚。虽然这对于不受种族限制的数据非常有效,但是不幸的是,缺少显式无效会损害任何依赖种族的同步的有效性。这包括任何形式的自旋等待,用于信令,锁定和屏障原语。在这项工作中,我们提出了一种用于这些协议中的自旋等待的新解决方案,即回调机制,它比显式失效更简单,更有效。回调由旋转等待中涉及的读取设置,并由写入(甚至可以在这些读取之前)满足。为了实现回调,我们使用了一个很小的(仅几个条目)目录缓存结构,该结构仅用于服务这些“等待自旋”的比赛。此目录结构是独立的,不以任何方式进行备份。条目是按需创建的,可以逐出而无需保留其信息。我们的评估表明,在显式失效和指数补偿方面均取得了显着改进,而后者是用于自我失效协议的最新机制,可避免在共享缓存中旋转。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号