paperbot · PL 论文追踪

全部论文 待读 收藏

P2 A Software Caching Runtime for Embedded NVRAM Systems

面向嵌入式 NVRAM 系统的软件缓存运行时
ASPLOS Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 42024匹配度 1/10 · 该论文研究嵌入式 NVRAM 系统中的软件指令缓存与运行时/编译期代码搬移优化,属于系统与编译方向,不涉及用户关注的静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析等核心问题。引用 2 inbox
Harrison Williams, Matthew Hicks
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:SwapRAM 将闲置 SRAM 复用为指令缓存,通过编译期变换与运行时管理动态搬移代码,显著加速 NVRAM 平台执行。

物联网与边缘计算正把大规模数据采集、处理与推理推向低功耗微控制器端节点,新兴的高性能非易失内存(NVRAM)虽能支撑此类负载,却在访问延迟与能耗上远逊于 SRAM,且读取性能不及 flash,使依赖 NVRAM 的系统在软件执行上付出高昂代价。作者观察到该性能损失主要来自对 NVRAM 的指令取指——占典型嵌入式软件内存访问的 75% 以上。为此提出 SwapRAM:一种面向 NVRAM 平台的新执行模型,把未被充分利用的 SRAM 改造为指令缓存,通过一组编译期代码变换与运行时管理系统,在执行过程中透明且动态地把代码复制进 SRAM,并配以可扩展逻辑推迟热代码的驱逐。在真实 FRAM 平台上运行九个嵌入式基准,相比使用现有硬件缓存的基线系统,SwapRAM 将执行速度最高提升 46%(平均 26%),能耗最多降低 36%(平均 24%)。

问题
基于 NVRAM 的嵌入式系统因指令取指占内存访问 75% 以上而受制于 NVRAM 高延迟与高能耗,现有硬件缓存无法消除这一瓶颈。
方法
提出 SwapRAM 执行模型,把闲置 SRAM 当作指令缓存,结合编译期代码变换与运行时管理系统透明、动态地将热代码复制进 SRAM,并用可扩展逻辑延迟其驱逐。
评估
在真实 FRAM 平台上运行九个嵌入式基准,与采用现有硬件缓存的基线对比执行速度与能耗。
原文摘要(Abstract)

Increasingly sophisticated low-power microcontrollers are at the heart of millions of IoT and edge computing deployments, with developers pushing large-scale data collection, processing, and inference to end nodes. Advanced workloads on resource-constrained systems depend on emerging technologies to meet performance and lifetime demands. High-performance Non-Volatile RAMs (NVRAMs) are one such technology enabling a new class of systems previously made impossible by memory limitations, including ultra-low-power designs using program state non-volatility and sensing systems storing and processing large blocks of data. Unfortunately, existing NVRAM significantly underperforms SRAM's access latency/energy cost and flash's read performance---condemning systems dependent on NVRAM to pay a steep energy and time penalty for software execution. We observe that this performance penalty stems predominately from instruction fetches into NVRAM, which represent >75% of memory accesses in typical embedded software. To eliminate this performance bottleneck, we propose SwapRAM, a new operating model for NVRAM-based platforms which repurposes underutilized SRAM as an instruction cache, maximizing the proportion of accesses directed towards higher-performance SRAM. SwapRAM consists of a set of compile-time code transformations and a runtime management system that transparently and dynamically copies code into SRAM throughout execution, with an extensible logic to delay eviction of hot code. Across nine embedded benchmarks running on a real FRAM platform, SwapRAM's software-based design increases execution speed by up to 46% (average 26%) and reduces energy consumption by up to 36% (average 24%) compared to a baseline system using the existing hardware cache.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@inproceedings{WilliamsH24a,
  title = {A Software Caching Runtime for Embedded NVRAM Systems},
  author = {Harrison Williams and Matthew Hicks},
  booktitle = {ASPLOS},
  year = {2024},
  doi = {10.1145/3622781.3674183}
}