Themis: Software-Defined Hardware Prefetching
Keisuke Kamahori, Neil Adit, Kan Zhu, Yuqi Mai, Victor Lee, Heiner Litz, Chris Kennelly, Snehasish Kumar, Hanna Alam, Milad Hashemi, David Li, Adrian Sampson, Baris Kasikci, Tipp Moseley, Parthasarathy Ranganathan, Akanksha Jain
Abstract
Data cache misses represent a significant portion of stall cycles in datacenter workloads. Hardware prefetchers that reduce such stalls by fetching data ahead of time have become increasingly sophisticated. However, to achieve high coverage, they have to prefetch aggressively, generating many inaccurate accesses that waste memory bandwidth. This is problematic in datacenter environments where memory bandwidth is a limited resource due to high multi-tenancy. We observe that for datacenter workloads, inaccurate prefetches can be effectively filtered on a data page granularity, without sacrificing prefetch coverage. However, storing per-page metadata about prefetch usefulness in hardware is costly, so we propose a novel hardware-software interface for data prefetching: The software directs the hardware on where to prefetch, and the hardware identifies and issues prefetches in the regions of interest. We propose Themis, a profile-guided hardware prefetching solution that implements this new interface. Themis utilizes page-level hints stored in page-table entries to disable the prefetcher for certain data pages at runtime. Themis requires no binary or ISA changes and can be used to optimize processes without disrupting their execution. Themis is also orthogonal to existing works on prefetching and can be applied to optimize any hardware prefetcher. Our results show that Themis is able to achieve around 40% reduction in useless prefetch requests, resulting in speedup for all the evaluated prefetchers for datacenter workloads, including 4.1% for BOP, 3.1% for SPP+PPF, and 1.4% for Pythia.
Create a lesson
Related papers
DT-RAID: A Software-Defined Tiered RAID Architecture for Heterogeneous SSDs
Shared title terminology · Kun-Chi Chiang, Radu Stoica, Animesh Trivedi et al.
Stratum: A Hardware-Software Co-Design Framework for SNN Inference on RISC-V
Shared title terminology · Wajahat Riaz, Muhammad Adeel Pasha, Shahid Masud et al.
Sub-100KB On-Device CNN Training via Dynamic Sparse Updates and Hardware--Software Co-Design
Shared title terminology · I-Hsuan Li, Tian-Sheuan Chang
Augur: An Online Learning-based Hardware Data Prefetcher using Reservoir Computing
Shared title terminology · Satvik Maurya, David Trilla, Swamit Tannu et al.
LowRank-SSM: Hardware-Software Co-Design for Rank-Reduced Mamba Acceleration on FPGA
Shared title terminology · Haocheng Xu, Yu-an Chou, Bhardwaj Bhat et al.
MDTransformer: A Hardware-Software Co-Design of Mode-Division Photonic Transformer Accelerator with Inverse-Designed Coherent Crossbar
Shared title terminology · Solomon Micheal Serunjogi, Rachmad Vidya Wicaksana Putra, Ayat Taha et al.