Logo: to the web site of Uppsala University

uu.sePublications from Uppsala University
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Making Sampled Simulations Faster by Minimizing Warming Time
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology. (Uppsala Architecture Research Group)ORCID iD: 0000-0001-7833-4412
2022 (English)Licentiate thesis, comprehensive summary (Other academic)
Abstract [en]

A computer system simulator is a fundamental tool for computer architects to try out brand new ideas or explore the system’s response to different configurations when executing different program codes. However, even simulating the CPU core in detail is time-consuming as the execution rate slows down by several orders of magnitude compared to native execution. To solve this problem, previous work, namely SMARTS, demonstrates a statistical sampling methodology that records measurements only from tiny samples throughout the simulation. It spends only a fraction of the full simulation time on these sample measurements. In-between detailed sample simulations, SMARTS fast-forwards in the simulation using a greatly simplified and much faster simulation model (compared to full detail), which maintains only necessary parts of the architecture, such as cache memory. This maintenance process is called warming. While warming is mandatory to keep the simulation accuracy high, caches may be sufficiently warm for an accurate simulation long before reaching the sample. In other words, much time may be wasted on warming in SMARTS.

In this work, we show that caches can be kept in an accurate state with much less time spent on warming. The first paper presents Adaptive Cache Warming, a methodology for identifying the minimum amount of warming in an iterative process for every SMARTS sample. The rest of the simulation time, previously spent on warming, can be skipped by fast-forwarding between samples using native hardware execution of the code. Doing so will thus result in significantly faster statistically sampled simulation while maintaining accuracy. The second paper presents Cache Merging, which mitigates the redundant warmings introduced in Adaptive Cache Warming. We solve this issue by going back in time and merging the existing warming with a cache warming session that comes chronologically before the existing warming. By removing the redundant warming, we yield even more speedup. Together, Adaptive Cache Warming and Cache Merging is a powerful boost for statistically sampled simulations.

Place, publisher, year, edition, pages
Uppsala: Uppsala University, 2022. , p. 107
Series
Information technology licentiate theses: Licentiate theses from the Department of Information Technology, ISSN 1404-5117
National Category
Computer Sciences
Research subject
Computer Systems Sciences
Identifiers
URN: urn:nbn:se:uu:diva-484368OAI: oai:DiVA.org:uu-484368DiVA, id: diva2:1694736
Presentation
2022-10-28, 10:15 (English)
Opponent
Supervisors
Available from: 2022-10-07 Created: 2022-09-10 Last updated: 2022-10-07Bibliographically approved
List of papers
1. Adaptive cache warming for faster simulations
Open this publication in new window or tab >>Adaptive cache warming for faster simulations
2017 (English)In: Proc. 9th Workshop on Rapid Simulation and Performance Evaluation: Methods and Tools, New York: ACM Press, 2017, article id 1Conference paper, Published paper (Refereed)
Place, publisher, year, edition, pages
New York: ACM Press, 2017
National Category
Computer Engineering
Identifiers
urn:nbn:se:uu:diva-310625 (URN)10.1145/3023973.3023974 (DOI)978-1-4503-4840-9 (ISBN)
Conference
RAPIDO 2017, January 23–25, Stockholm, Sweden
Projects
UPMARC
Funder
Swedish Research Council, 2014-5480Swedish Foundation for Strategic Research , FFL12-0051
Available from: 2017-01-23 Created: 2016-12-16 Last updated: 2022-09-10Bibliographically approved
2. Faster Functional Warming with Cache Merging
Open this publication in new window or tab >>Faster Functional Warming with Cache Merging
2022 (English)Report (Other academic)
Abstract [en]

Smarts-like sampled hardware simulation techniques achieve good accuracy by simulating many small portions of an application in detail. However, while this reduces the detailed simulation time, it results in extensive cache warming times, as each of the many simulation points requires warming the whole memory hierarchy. Adaptive Cache Warming reduces this time by iteratively increasing warming until achieving sufficient accuracy. Unfortunately, each time the warming increases, the previous warming must be redone, nearly doubling the required warming. We address re-warming by developing a technique to merge the cache states from the previous and additional warming iterations.

We address re-warming by developing a technique to merge the cache states from the previous and additional warming iterations. We demonstrate our merging approach on multi-level LRU cache hierarchy and evaluate and address the introduced errors. By removing warming redundancy, we expect an ideal 2× warming speedup when using our Cache Merging solution together with Adaptive Cache Warming. Experiments show that Cache Merging delivers an average speedup of 1.44×, 1.84×, and 1.87× for 128kB, 2MB, and 8MB L2 caches, respectively, with 95-percentile absolute IPC errors of only 0.029, 0.015, and 0.006, respectively. These results demonstrate that Cache Merging yields significantly higher simulation speed with minimal losses.

Publisher
p. 22
Keywords
functional warming, cache warming, cache merging
National Category
Computer Sciences
Research subject
Computer Systems Sciences
Identifiers
urn:nbn:se:uu:diva-484367 (URN)2022-007 (ISRN)
Funder
Knut and Alice Wallenberg Foundation, 2015.0153EU, Horizon 2020, 715283National Supercomputer Centre (NSC), Sweden, 2021/22-435Swedish National Infrastructure for Computing (SNIC), 2021/23-626Swedish Research Council, 2018-05973
Available from: 2022-09-10 Created: 2022-09-10 Last updated: 2022-12-16Bibliographically approved

Open Access in DiVA

No full text in DiVA

Search in DiVA

By author/editor
Borgström, Gustaf
By organisation
Department of Information Technology
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar

urn-nbn

Altmetric score

urn-nbn
Total: 139 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf