arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.04635cs.ARcs.OS
收藏

Virtuoso:通过基于模仿的操作系统模拟方法实现快速准确的虚拟内存研究

Virtuoso: Enabling Fast and Accurate Virtual Memory Research via an Imitation-based Operating System Simulation Methodology

Konstantinos Kanellopoulos, Konstantinos Sgouras, F. Nisa Bostanci, Andreas Kosmas Kakolyris, Berkin Kerim Konar, Rahul Bera, Mohammad Sadrosadati, Rakesh Kumar… 展开作者

Konstantinos Kanellopoulos, Konstantinos Sgouras, F. Nisa Bostanci, Andreas Kosmas Kakolyris, Berkin Kerim Konar, Rahul Bera, Mohammad Sadrosadati, Rakesh Kumar, Nandita Vijaykumar, Onur Mutlu

AI总结:

针对虚拟内存研究模拟工具精度不足或速度慢的问题,提出基于模仿操作系统内核的Virtuoso框架,集成多模拟器,实现高精度快速评估,IPC精度提升21%。

摘要:

新兴应用对数据需求的空前增长使虚拟内存(VM)成为主要性能瓶颈。研究人员探索新的硬件/操作系统协同设计,以在不同应用和系统中优化虚拟内存。为了评估此类设计,研究人员依赖各种模拟方法来建模虚拟内存组件。不幸的是,当前的模拟工具(i)要么在建模虚拟内存软件组件时缺乏所需的准确性,要么(ii)对于跨越硬件/软件边界的方案,原型化和评估过于缓慢和复杂。我们介绍Virtuoso,一种新的模拟框架,能够快速准确地原型化和评估虚拟内存子系统的软件和硬件组件。Virtuoso的关键思想是采用一个轻量级的用户空间操作系统内核,称为MimicOS,它(i)通过仅模仿所需的内核功能来加速模拟时间,(ii)使用可访问的高级编程接口,促进开发模仿真实操作系统例程的新操作系统例程,(iii)在将Virtuoso集成到所需架构模拟器后,能够准确灵活地评估虚拟内存对应用和系统级的影响。我们将Virtuoso集成到五个不同的架构模拟器中,每个模拟器专注于系统设计的不同方面,并大量丰富了多种最先进的虚拟内存方案。我们的验证表明,移植到Sniper(一种最先进的微架构模拟器)之上的Virtuoso,以高精度模拟了真实高端服务器级CPU的内存管理单元和真实Linux内核的页面错误延迟。因此,Virtuoso模拟真实高端服务器级CPU的IPC性能,其准确性比基线版本的Sniper高21%。Virtuoso的源代码可在https://github.com/CMU-SAFARI/Virtuoso免费获取。

英文摘要:

The unprecedented growth in data demand from emerging applications has turned virtual memory (VM) into a major performance bottleneck. Researchers explore new hardware/OS co-designs to optimize VM across diverse applications and systems. To evaluate such designs, researchers rely on various simulation methodologies to model VM components.Unfortunately, current simulation tools (i) either lack the desired accuracy in modeling VM's software components or (ii) are too slow and complex to prototype and evaluate schemes that span across the hardware/software boundary. We introduce Virtuoso, a new simulation framework that enables quick and accurate prototyping and evaluation of the software and hardware components of the VM subsystem. The key idea of Virtuoso is to employ a lightweight userspace OS kernel, called MimicOS, that (i) accelerates simulation time by imitating only the desired kernel functionalities, (ii) facilitates the development of new OS routines that imitate real ones, using an accessible high-level programming interface, (iii) enables accurate and flexible evaluation of the application- and system-level implications of VM after integrating Virtuoso to a desired architectural simulator. We integrate Virtuoso into five diverse architectural simulators, each specializing in different aspects of system design, and heavily enrich it with multiple state-of-the-art VM schemes. Our validation shows that Virtuoso ported on top of Sniper, a state-of-the-art microarchitectural simulator, models the memory management unit of a real high-end server-grade page fault latency of a real Linux kernel with high accuracy . Consequently, Virtuoso models the IPC performance of a real high-end server-grade CPU with 21% higher accuracy than the baseline version of Sniper. The source code of Virtuoso is freely available at https://github.com/CMU-SAFARI/Virtuoso.

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

↑