Skip to main navigation Skip to search Skip to main content

NUCAlloc: Fine-Grained Block Placement in Hashed Last-Level NUCA Caches

  • Cloud Software Group
  • Apple
  • Texas A&M University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

Abstract

Modern last-level caches are partitioned into slices that are spread across the chip, giving rise to varying access latencies dictated by the physical location of the accessing core and the cache slice being accessed. Although, prior work has shown that dynamically determining the best location for blocks within such Non-Uniform Cache Access architectures can provide significant performance benefits, current hardware does not implement this functionality. Instead, modern processors hash blocks across the LLC slices, obscuring the non-uniform architecture of the underlying cache and forfeiting the performance benefits of placing data in the nearest cache slices. Moreover, while prior work advocated improving performance by delegating control over block placement to the operating system at page granularity, modern processor hardware thwarts these approaches by hashing cache slice selection at cache block granularity. In this work, we make two observations that enable us to improve software performance on modern NUCA architectures. First, we find that software can undo the hashing performed by hardware and efficiently manage data placement at cache block granularity. Second, that the complexity of fine-grained data placement can be hidden from the developer by embedding it in the dynamic memory allocator. Leveraging these observations, we design a new specialized memory allocator, NUCAlloc, suitable for use with C++ containers such as std::map and std::set. NUCAlloc handles the complexity of NUCA-aware block placement, improving the performance of containers by placing their data into the nearest LLC slices. We demonstrate that our NUCAlloc prototype consistently outperforms std::allocator and jemalloc for LLC-resident containers, improving performance by up to 20% in both single-threaded and multi-threaded software.

Original languageEnglish
Title of host publicationICS 2024 - Proceedings of the 38th ACM International Conference on Supercomputing
PublisherAssociation for Computing Machinery
Pages85-97
Number of pages13
ISBN (Electronic)9798400706103
DOIs
StatePublished - May 30 2024
Event38th ACM International Conference on Supercomputing, ICS 2024 - Kyoto, Japan
Duration: Jun 4 2024Jun 7 2024

Publication series

NameProceedings of the International Conference on Supercomputing

Conference

Conference38th ACM International Conference on Supercomputing, ICS 2024
Country/TerritoryJapan
CityKyoto
Period06/4/2406/7/24

Keywords

  • NUCA
  • memory allocation
  • micro-architecture
  • performance

Fingerprint

Dive into the research topics of 'NUCAlloc: Fine-Grained Block Placement in Hashed Last-Level NUCA Caches'. Together they form a unique fingerprint.

Cite this