アーキテクチャシミュレーションにおけるオンラインモデルスワップ
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% 以下に抑えるだけで、組み込みのキャッシュモデルを置き換えることが可能である。また、我々の単純なモデルは、モデルの 1 回の「実行」あたりの計算量が 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