arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.00444cs.ARcs.OS
收藏

一种有效的基于反向查找表的策略,用于解决虚拟索引、虚拟标记缓存中的同义词和缓存一致性问题

An efficient reverse-lookup table based strategy for solving the synonym and cache coherence problem in virtually indexed, virtually tagged caches

Madhav P. Desai, Aniket Deshmukh

摘要:

虚拟索引和虚拟标记(VIVT)高速缓存是微处理器1级高速缓存的有吸引力的选择,因为它们的快速响应时间,并且因为它们比诸如虚拟索引物理标记(VIPT)高速缓存的更复杂的高速缓存实现更便宜。如果将一级VIVT高速缓存实现为直接映射高速缓存(VIVT-DM高速缓存),则其构造变得更加简单。然而,VIVT和VIVT-DM高速缓存具有一些缺点。当高速缓存中的组的数量大于最小页面大小时,高速缓存中可能存在同义词(映射到相同物理地址的两个或更多虚拟地址)。此外,跨多个处理器的缓存一致性的维护需要硬件中的物理到虚拟的转换机制。我们描述了一个简单的,高效的反向查找表为基础的方法来解决VIVT(集关联和直接映射)缓存的同义词和一致性问题。特别地,所提出的方案不干扰典型微处理器中的关键存储器访问路径,并且其实现需要低开销。我们已经实施并验证了该计划在AJIT 32位微处理器核心(SPARC-V8 ISA的实现)和实现使用大约2%的门和5.3%的存储器位的处理器核心。

英文摘要:

Virtually indexed and virtually tagged (VIVT) caches are an attractive option for micro-processor level-1 caches, because of their fast response time and because they are cheaper to implement than more complex caches such as virtually-indexed physical-tagged (VIPT) caches. The level-1 VIVT cache becomes even simpler to construct if it is implemented as a direct-mapped cache (VIVT-DM cache). However, VIVT and VIVT-DM caches have some drawbacks. When the number of sets in the cache is larger than the smallest page size, there is a possibility of synonyms (two or more virtual addresses mapped to the same physical address) existing in the cache. Further, maintenance of cache coherence across multiple processors requires a physical to virtual translation mechanism in the hardware. We describe a simple, efficient reverse lookup table based approach to address the synonym and the coherence problems in VIVT (both set associative and direct-mapped) caches. In particular, the proposed scheme does not disturb the critical memory access paths in a typical micro-processor, and requires a low overhead for its implementation. We have implemented and validated the scheme in the AJIT 32-bit microprocessor core (an implementation of the SPARC-V8 ISA) and the implementation uses approximately 2% of the gates and 5.3% of the memory bits in the processor core.

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

↑