Back to Search
Start Over
AsmDB: Understanding and Mitigating Front-End Stalls in Warehouse-Scale Computers
- Source :
- ISCA
- Publication Year :
- 2020
- Publisher :
- Institute of Electrical and Electronics Engineers (IEEE), 2020.
-
Abstract
- The large instruction working sets of private and public cloud workloads lead to frequent instruction cache misses and costs in the millions of dollars. While prior work has identified the growing importance of this problem, to date, there has been little analysis of where the misses come from, and what the opportunities are to improve them. To address this challenge, this paper makes three contributions. First, we present the design and deployment of a new, always-on, fleet-wide monitoring system, AsmDB, that tracks front-end bottlenecks. AsmDB uses hardware support to collect bursty execution traces, fleet-wide temporal and spatial sampling, and sophisticated offline post-processing to construct full-program dynamic control-flow graphs. Second, based on a longitudinal analysis of AsmDB data from real-world online services, we present two detailed insights on the sources of front-end stalls: (1) cold code that is brought in along with hot code leads to significant cache fragmentation and a corresponding large number of instruction cache misses; (2) distant branches and calls that are not amenable to traditional cache locality or next-line prefetching strategies account for a large fraction of cache misses. Third, we prototype two optimizations that target these insights. For misses caused by fragmentation, we focus on memcmp, one of the hottest functions contributing to cache misses, and show how fine-grained layout optimizations lead to significant benefits. For misses at the targets of distant jumps, we propose new hardware support for software code prefetching and prototype a new feedback-directed compiler optimization that combines static program flow analysis with dynamic miss profiles to demonstrate significant benefits for several large warehouse-scale workloads. Improving upon prior work, our proposal avoids invasive hardware modifications by prefetching via software in an efficient and scalable way. Simulation results show that such an approach can eliminate up to 96% of instruction cache misses with negligible overheads.
- Subjects :
- Computer science
Distributed computing
Optimizing compiler
Cloud computing
02 engineering and technology
Computer security
computer.software_genre
01 natural sciences
Market fragmentation
Front and back ends
Software
Server
0103 physical sciences
0202 electrical engineering, electronic engineering, information engineering
Code (cryptography)
Electrical and Electronic Engineering
010302 applied physics
Hardware_MEMORYSTRUCTURES
business.industry
Scale (chemistry)
Construct (python library)
020202 computer hardware & architecture
Work (electrical)
Hardware and Architecture
Scalability
Cache
business
computer
Subjects
Details
- ISSN :
- 19374143 and 02721732
- Volume :
- 40
- Database :
- OpenAIRE
- Journal :
- IEEE Micro
- Accession number :
- edsair.doi.dedup.....81d4043f3bf8b37dace0f4132ba9d567
- Full Text :
- https://doi.org/10.1109/mm.2020.2986212