Coherence protocol for transparent management of scratchpad memories in shared memory manycore architectures
Document typeConference report
PublisherAssociation for Computing Machinery (ACM)
Rights accessOpen Access
The increasing number of cores in manycore architectures causes important power and scalability problems in the memory subsystem. One solution is to introduce scratchpad memories alongside the cache hierarchy, forming a hybrid memory system. Scratchpad memories are more power-efficient than caches and they do not generate coherence traffic, but they suffer from poor programmability. A good way to hide the programmability difficulties to the programmer is to give the compiler the responsibility of generating code to manage the scratchpad memories. Unfortunately, compilers do not succeed in generating this code in the presence of random memory accesses with unknown aliasing hazards. This paper proposes a coherence protocol for the hybrid memory system that allows the compiler to always generate code to manage the scratchpad memories. In coordination with the compiler, memory accesses that may access stale copies of data are identified and diverted to the valid copy of the data. The proposal allows the architecture to be exposed to the programmer as a shared memory manycore, maintaining the programming simplicity of shared memory models and preserving backwards compatibility. In a 64-core manycore, the coherence protocol adds overheads of 4% in performance, 8% in network traffic and 9% in energy consumption to enable the usage of the hybrid memory system that, compared to a cache-based system, achieves a speedup of 1.14x and reduces on-chip network traffic and energy consumption by 29% and 17%, respectively.
CitationÁlvarez, Ll., Vilanova, L., Moreto, M., Casas, M., González, M., Martorell, X., Navarro, Nacho, Ayguadé, E., Valero, M. Coherence protocol for transparent management of scratchpad memories in shared memory manycore architectures. A: International Symposium on Computer Architecture. "Proceedings of the 42nd Annual International Symposium on Computer Architecture". Portland, Oregon: Association for Computing Machinery (ACM), 2015, p. 720-732.