Optimizing Memory Locality Using a Locality-Aware Page Table

  • Eduardo H. M. Cruz UFRGS
  • Matthias Diener UFRGS
  • Marco A. Z. Alves UFRGS
  • Laércio L. Pilla UFRGS
  • Philippe O. A. Navaux UFRGS

Resumo


One of the main challenges for modern parallel shared-memory architectures are accesses to main memory. In current systems, the performance and energy efficiency of memory accesses depend on their locality: accesses to remote caches and NUMA nodes are more expensive than accesses to local ones. Increasing the locality requires knowledge about how the threads of a parallel application access memory pages. With this information, pages can be migrated to the NUMA nodes that access them (data mapping), as well as threads that access the same pages can be migrated to the same node such that locality can be improved even further (thread mapping). In this paper, we propose LAPT, a mechanism to store the memory access pattern of parallel applications in the page table, which is updated by the hardware during TLB misses. This information is used by the operating system to perform an optimized thread and data mapping during the execution of the parallel application. In contrast to previous work, LAPT does not require any previous information about the behavior of the applications, or changes to the application or runtime libraries. Extensive experiments with the NAS Parallel Benchmarks (NPB) and PARSEC showed performance and energy efficiency improvements of up to 19.2% and 15.7%, respectively, (6.7% and 5.3% on average).
Palavras-chave: Instruction sets, Operating systems, Hardware, Memory management, Radiation detectors, Benchmark testing
Publicado
22/10/2014
CRUZ, Eduardo H. M.; DIENER, Matthias; ALVES, Marco A. Z.; PILLA, Laércio L.; NAVAUX, Philippe O. A.. Optimizing Memory Locality Using a Locality-Aware Page Table. In: INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE AND HIGH PERFORMANCE COMPUTING (SBAC-PAD), 26. , 2014, Paris/FR. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2014 . p. 198-205.