건축 시뮬레이션에서의 온라인 모델 교체
Online Model Swapping in Architectural Simulation
Online Model Swapping in Architectural Simulation
@misc{lavin2020online,
title = {Online Model Swapping in Architectural Simulation},
author = {Patrick Lavin and Jeffrey Young and Rich Vuduc and Jonathan Beard},
year = {2020},
eprint = {2012.01571},
archivePrefix = {arXiv},
primaryClass = {cs.AR},
url = {https://arxiv.org/abs/2012.01571}
}
Lavin, P., Young, J., Vuduc, R., & Beard, J. (2020). Online Model Swapping in Architectural Simulation [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2012.01571
LAVIN P, YOUNG J, VUDUC R, et al. Online Model Swapping in Architectural Simulation[EB/OL]. (2020-12-02)[2026-11-29]. https://arxiv.org/abs/2012.01571.
초록
시스템과 애플리케이션이 점점 더 복잡해짐에 따라 상세한 시뮬레이션은 점점 더 많은 시간이 소요된다. 시뮬레이션 시간이 증가하여 설계 반복 주기가 길어지는 전망은 아키텍트들이 설계에 빠르게 반복할 때 스프레드시트와 같은 단순 모델을 사용하도록 강요한다. 그러나 단순한 시뮬레이션에서 더 상세한 시뮬레이션으로 전환하는 작업은 단순한 모델이 효과적인 지점을 찾기 위해 여러 번의 실행을 필요로 하며, 이는 처음부터 상세한 모델을 실행하는 것보다 더 비쌀 수 있다. 또한 아키텍트들은 종종 이러한 단순한 모델을 선택하기 위해 직관에 의존해야 하며, 이는 문제를 더욱 복잡하게 만든다. 본 논문에서는 시뮬레이션 동작을 온라인으로 모니터링하고 상세한 모델을 더 간단한 통계적 근사치로 자동으로 교체함으로써 단순한 시뮬레이션과 상세한 시뮬레이션 사이의 간극을 연결하는 방법을 제시한다. 우리는 이 방법론의 잠재력을 구현된 오픈소스 시뮬레이터 SVE-Cachesim 에서 메모리 계층 구조 내의 레벨 1 데이터 캐시 (L1D) 를 교체하는 것을 통해 입증한다. 이 개념 증명 연구는 우리의 기법이 시간 불변 통계의 근사뿐만 아니라 시간에 따라 변하는 통계 (예: L1D 는 시계열 함수의 형태이다) 와 다운스트림 부수 효과 (예: L1D 는 레벨 2 캐시를 위한 액세스를 필터링한다) 를 처리할 수 있음을 보여준다. 우리의 시뮬레이션은 근사화된 캐시 모델을 시뮬레이션의 90% 이상 사용하면서도 시뮬레이션 사이클 카운트에서 오차가 8% 미만으로만 유지되며, 우리의 단순한 모델은 모델의 "실행"당 2 8 배 적은 계산량을 요구한다.
As systems and applications grow more complex, detailed simulation takes an ever increasing amount of time. The prospect of increased simulation time resulting in slower design iteration forces architects to use simpler models, such as spreadsheets, when they want to iterate quickly on a design. However, the task of migrating from a simple simulation to one with more detail often requires multiple executions to find where simple models could be effective, which could be more expensive than running the detailed model in the first place. Also, architects must often rely on intuition to choose these simpler models, further complicating the problem. In this work, we present a method of bridging the gap between simple and detailed simulation by monitoring simulation behavior online and automatically swapping out detailed models with simpler statistical approximations. We demonstrate the potential of our methodology by implementing it in the open-source simulator SVE-Cachesim to swap out the level one data cache (L1D) within a memory hierarchy. This proof of concept demonstrates that our technique can handle a non-trivial use-case in not just approximation of local time-invariant statistics, but also those that vary with time (e.g., the L1D is a form of a time-series function), and downstream side-effects (e.g., the L1D filters accesses for the level two cache). Our simulation swaps out the built-in cache model with only an 8% error in the simulated cycle count while using the approximated cache models for over 90% of the simulation, and our simpler models require two to eight times less computation per "execution" of the model