paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Beacons: An End-to-End Compiler Framework for Predicting and Utilizing Dynamic Loop Characteristics

Beacons:用于预测和利用动态循环特征的端到端编译器框架
OOPSLA 7(OOPSLA2)2023匹配度 3/10 · 论文属于编译器/运行时与机器学习的交叉,利用循环级编译分析和 ML 预测动态循环特征并优化 HPC 调度,但与用户核心方向(面向 ML/Agentic 程序的静态分析、LLM/Agent 辅助静态分析或形式化验证、浮点程序分析、贝叶斯程序分析)几乎没有直接重叠。其 ML 用于 HPC 负载调度而非 LLM/Agent 或程序分析工具链。引用 4 inbox
Girish Mururu, Sharjeel Khan, Bodhisatwa Chatterjee, Chao Chen, Chris Porter, Ada Gavrilovska, Santosh Pande
crossref: 2026-09-10

AI 速览

一句话:提出 Beacons 端到端编译器/运行时框架,预测动态循环特征并驱动主动调度,提升 HPC 资源并发与吞吐。

HPC 环境中的共享资源管理常因避免共置而导致利用率低。本文提出 Beacons,一个端到端的编译器与运行时协同框架,通过基于循环的编译器分析结合机器学习,在运行时估计循环跳数、执行时间、内存占用和数据复用四类动态循环特征,并将其封装为编译器插入的 beacon 广播给调度器。该框架还能处理含结构体字段、别名变量和函数调用等复杂控制流的不规则循环。后端主动负载调度器利用这些信息进行激进的进程共置,在最大化资源并发的同时避免缓存颠簸。在 Amazon Graviton2 上,对 51 个基准、1000 至 10000 个共执行进程,特征预测平均准确率为 85% 至 95%,吞吐较先进调度器平均提升 1.9 倍,最高 3.2 倍。

问题
如何在高性能计算环境中以可扩展、轻量方式获取应用细粒度资源需求与执行阶段信息,从而在共享资源调度中兼顾性能隔离与资源利用率。
方法
设计 Beacons 编译器与运行时协同框架:用基于循环的编译分析和机器学习预测四类动态循环特征,编译插入 beacon 并在运行时广播,后端主动调度器据此共置进程并避免缓存颠簸。
评估
在 Amazon Graviton2 上使用 51 个基准、1000 至 10000 个共执行进程评估:循环特征预测平均准确率 85% 至 95%,主动调度器吞吐较当前先进调度器平均提升 1.9 倍,最高 3.2 倍。
原文摘要(Abstract)

Efficient management of shared resources is a critical problem in high-performance computing (HPC) environments. Existing workload management systems often promote non-sharing of resources among different co-executing applications to achieve performance isolation. Such schemes lead to poor resource utilization and suboptimal process throughput, adversely affecting user productivity. Tackling this problem in a scalable fashion is extremely challenging, since it requires the workload scheduler to possess an in-depth knowledge about various application resource requirements and runtime phases at fine granularities within individual applications. In this work, we show that applications’ resource requirements and execution phase behaviour can be captured in a scalable and lightweight manner at runtime by estimating important program artifacts termed as “ dynamic loop characteristics ”. Specifically, we propose a solution to the problem of efficient workload scheduling by designing a compiler and runtime cooperative framework that leverages novel loop-based compiler analysis for resource allocation . We present Beacons Framework , an end-to-end compiler and scheduling framework, that estimates dynamic loop characteristics, encapsulates them in compiler-instrumented beacons in an application, and broadcasts them during application runtime, for proactive workload scheduling. We focus on estimating four important loop characteristics : loop trip-count , loop timing , loop memory footprint , and loop data-reuse behaviour , through a combination of compiler analysis and machine learning. The novelty of the Beacons Framework also lies in its ability to tackle irregular loops that exhibit complex control flow with indeterminate loop bounds involving structure fields, aliased variables and function calls , which are highly prevalent in modern workloads. At the backend, Beacons Framework entails a proactive workload scheduler that leverages the runtime information to orchestrate aggressive process co-locations, for maximizing resource concurrency, without causing cache thrashing . Our results show that Beacons Framework can predict different loop characteristics with an accuracy of 85% to 95% on average, and the proactive scheduler obtains an average throughput improvement of 1.9x (up to 3.2x ) over the state-of-the-art schedulers on an Amazon Graviton2 machine on consolidated workloads involving 1000-10000 co-executing processes, across 51 benchmarks.

链接与引用

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

BibTeX
@article{paperbot1881,
  title = {Beacons: An End-to-End Compiler Framework for Predicting and Utilizing Dynamic Loop Characteristics},
  author = {Girish Mururu and Sharjeel Khan and Bodhisatwa Chatterjee and Chao Chen and Chris Porter and Ada Gavrilovska and Santosh Pande},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {7},
  number = {OOPSLA2},
  year = {2023},
  doi = {10.1145/3622803}
}