...
首页> 外文期刊>IEEE Transactions on Computers >Eliminating conflict misses using prime number-based cache indexing
【24h】

Eliminating conflict misses using prime number-based cache indexing

机译:使用基于质数的缓存索引消除冲突未命中

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

摘要

Using alternative cache indexing/hashing functions is a popular technique to reduce conflict misses by achieving a more uniform cache access distribution across the sets in the cache. Although various alternative hashing functions have been demonstrated to eliminate the worst-case conflict behavior, no study has really analyzed the pathological behavior of such hashing functions that often results in performance slowdown. We present an in-depth analysis of the pathological behavior of cache hashing functions. Based on the analysis, we propose two new hashing functions, prime modulo and odd-multiplier displacement, that are resistant to pathological behavior and yet are able to eliminate the worst-case conflict behavior in the L2 cache. We show that these two schemes can be implemented in fast hardware using a set of narrow addition operations, with negligible fragmentation in the L2 cache. We evaluate the schemes on 23 memory intensive applications. For applications that have nonuniform cache accesses, both prime modulo and odd-multiplier displacement hashing achieve an average speedup of 1.27 compared to traditional hashing, without slowing down any of the 23 benchmarks. We also evaluate using odd-multiplier displacement function with multiple multipliers in conjunction with a skewed associative L2 cache. The skewed associative cache achieves a better average speedup at the cost of some pathological behavior that slows down four applications by up to 7 percent.
机译:使用替代的缓存索引/散列函数是一种流行的技术,可通过在缓存中的各个集合之间实现更统一的缓存访问分布来减少冲突遗漏。尽管已证明各种替代哈希函数可以消除最坏情况的冲突行为,但尚无研究真正分析此类哈希函数的病理行为(通常会导致性能下降)。我们对缓存哈希函数的病理行为进行了深入分析。在分析的基础上,我们提出了两个新的哈希函数,即素模和奇乘移位,它们可以抵抗病理行为,并且能够消除L2缓存中的最坏情况下的冲突行为。我们展示了这两种方案可以使用一组窄加法运算在快速硬件中实现,而二级缓存中的碎片可以忽略不计。我们在23种内存密集型应用程序上评估了该方案。对于具有非均匀高速缓存访​​问的应用程序,与传统哈希相比,素数模和奇数乘法位移哈希均可以实现平均1.27的加速,而不会降低23个基准中的任何一个。我们还评估了使用带有多个乘法器的奇数乘法器位移函数以及偏斜的关联L2缓存。偏斜的关联高速缓存以某些病理行为为代价,可以实现更好的平均速度,从而使四个应用程序的运行速度降低多达7%。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号