首页> 外文会议>International Symposium on Microarchitecture >TMI: Thread Memory Isolation for False Sharing Repair
【24h】

TMI: Thread Memory Isolation for False Sharing Repair

机译:TMI:虚假共享修复的线程内存隔离

获取原文

摘要

Cache contention in the form of false sharing and true sharing arises when threads overshare cache lines at high frequency. Such oversharing can reduce or negate the performance benefits of parallel execution. Prior systems for detecting and repairing cache contention lack efficiency in detection or repair, contain subtle memory consistency flaws, or require invasive changes to the program environment. In this paper, we introduce a new way to combat cache line oversharing via the Thread Memory Isolation (TMI) system. TMI operates completely in userspace, leveraging performance counters and the Linux ptrace mechanism to tread lightly on monitored applications, intervening only when necessary. TMI's compatible-by-default design allows it to scale to real-world workloads, unlike previous proposals. TMI introduces a novel code-centric consistency model to handle cross-language memory consistency issues. TMI exploits the flexibility of code-centric consistency to efficiently repair false sharing while preserving strong consistency model semantics when necessary. TMI has minimal impact on programs without oversharing, slowing their execution by just 2% on average. We also evaluate TMI on benchmarks with known false sharing, and manually inject a false sharing bug into the leveldb key-value store from Google. For these programs, TMI provides an average speedup of 5.2x and achieves 88% of the speedup possible with manual source code fixes.
机译:当线程在高频下的高速缓存行时出现了虚假共享和真实共享形式的缓存争用。这种过度的可以减少或否定并行执行的性能效益。用于检测和修复高速缓存争用的先验系统缺乏检测或修复的效率,包含微妙的记忆一致性缺陷,或者需要对节目环境进行侵入性的变化。在本文中,我们介绍了一种通过线程存储器隔离(TMI)系统来打击缓存线过度的新方法。 TMI完全在用户空间中运行,利用性能计数器和Linux Ptrace机制,轻轻踩踏监控应用,仅在必要时介入。与以前的建议不同,TMI兼容逐默认设计允许它缩放到现实世界工作负载。 TMI介绍了一种以新颖的代码为中心的一致性模型来处理跨语言内存一致性问题。 TMI利用代码为中心的一致性的灵活性,以有效地修复错误共享,同时在必要时保留强持续性模型语义。 TMI对未经过时的程序对节目的影响最小,平均仅减慢2%的执行。我们还在具有已知虚假共享的基准测试中评估TMI,并在Google中手动将虚假共享错误注入LeveldB键值存储。对于这些程序,TMI提供了5.2倍的平均速度,并通过手动源代码修复实现了88%的加速。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号