arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.17089cs.AR
收藏

Pac-Sim:使用智能、实时采样的多线程工作负载模拟

Pac-Sim: Simulation of Multi-threaded Workloads using Intelligent, Live Sampling

Changxi Liu, Alen Sabu, Akanksha Chaudhari, Qingxuan Kang, Trevor E. Carlson

AI总结:

针对多线程工作负载动态模拟的挑战,提出无需预先分析的采样模拟方法Pac-Sim,在硬件和软件动态变化下实现快速准确模拟,显著降低误差并大幅提升模拟速度。

摘要:

高性能、多核处理器是加速多个应用领域工作负载的关键。为了在摩尔定律和Dennard缩放的极限下继续扩展性能,软件和硬件设计者已转向以透明、自动的方式适应应用需求的动态解决方案。例如,现代硬件通过根据所用技术、运行的工作负载等诸多参数改变硬件配置(如核心的频率和电压),来提升其性能和功耗效率。在这种级别的动态性下,以既能响应系统变化又能准确确定系统性能指标的方式模拟下一代多核处理器至关重要。目前,没有任何采样模拟平台能够实现多线程工作负载的动态、快速且准确模拟这些目标。在这项工作中,我们提出了一种解决方案,允许在硬件和软件动态变化的情况下进行快速、准确的模拟。为了实现这一目标,我们提出了Pac-Sim,这是一种新颖的采样模拟方法,用于无需对工作负载进行预先分析的快速、准确的采样模拟。借助我们提出的方法,现在即使在存在动态硬件事件的情况下,也能模拟长时间运行的动态调度多线程程序,并获得显著的模拟加速。我们使用具有静态和动态线程调度的多线程SPEC CPU2017、NPB和PARSEC基准对Pac-Sim进行了评估。实验结果表明,对于静态和动态调度的基准,Pac-Sim分别实现了平均1.63%和3.81%的极低采样误差。对于SPEC CPU2017的train输入集,Pac-Sim还展示了高达523.5倍(平均210.3倍)的显著模拟加速。

英文摘要:

High-performance, multi-core processors are the key to accelerating workloads in several application domains. To continue to scale performance at the limit of Moore's Law and Dennard scaling, software and hardware designers have turned to dynamic solutions that adapt to the needs of applications in a transparent, automatic way. For example, modern hardware improves its performance and power efficiency by changing the hardware configuration, like the frequency and voltage of cores, according to a number of parameters such as the technology used, the workload running, etc. With this level of dynamism, it is essential to simulate next-generation multi-core processors in a way that can both respond to system changes and accurately determine system performance metrics. Currently, no sampled simulation platform can achieve these goals of dynamic, fast, and accurate simulation of multi-threaded workloads. In this work, we propose a solution that allows for fast, accurate simulation in the presence of both hardware and software dynamism. To accomplish this goal, we present Pac-Sim, a novel sampled simulation methodology for fast, accurate sampled simulation that requires no upfront analysis of the workload. With our proposed methodology, it is now possible to simulate long-running dynamically scheduled multi-threaded programs with significant simulation speedups even in the presence of dynamic hardware events. We evaluate Pac-Sim using the multi-threaded SPEC CPU2017, NPB, and PARSEC benchmarks with both static and dynamic thread scheduling. The experimental results show that Pac-Sim achieves a very low sampling error of 1.63% and 3.81% on average for statically and dynamically scheduled benchmarks, respectively. Pac-Sim also demonstrates significant simulation speedups as high as 523.5$\times$ (210.3$\times$ on average) for the train input set of SPEC CPU2017.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑