在Kubernetes上回收空闲CPU周期:用于并发MPI-CFD模拟的稀疏域多路复用
Reclaiming Idle CPU Cycles on Kubernetes: Sparse-Domain Multiplexing for Concurrent MPI-CFD Simulations
AI总结:
本文提出在Kubernetes上通过稀疏域多路复用回收空闲CPU周期,利用PMPI分析空闲分数并实现并发MPI-CFD模拟,提升吞吐量至3.74倍,首次应用原地Pod垂直扩展于运行中的MPI进程。
摘要:
当MPI并行模拟在共享Kubernetes集群上运行时,传统CPU调度使大部分分配的周期在同步屏障处闲置。本文提出一种多路复用框架,通过在同一集群上 colocate 多个模拟来回收这种空闲容量。基于PMPI的 duty-cycle 分析量化了每个rank的空闲分数;比例化的CPU分配允许第二个模拟在最小的开销下并发执行,从而获得1.77倍的吞吐量。通过Pareto扫描到N=5个并发模拟,吞吐量扩展到3.74倍,其中在N=3处达到最佳效率-成本权衡。一个具有单个拟合参数的分析模型预测了这些增益在±4%范围内。动态控制器自动化了整个流程,从分析通过原地Pod垂直扩展(KEP-1287)到打包和公平性监控,实现了四个模拟的3.25倍吞吐量,无需人工干预或Pod重启。据我们所知,这是首次将原地Pod垂直扩展应用于正在运行的MPI进程。在AWS集群上使用OpenFOAM CFD进行的实验确认,结果在同心和标准图基(Scotch)网格划分下均成立。
英文摘要:
When simulations parallelized with the Message Passing Interface (MPI) run on shared Kubernetes clusters, conventional CPU scheduling leaves most provisioned cycles idle at synchronization barriers. This paper presents a multiplexing framework that reclaims this idle capacity by co-locating multiple simulations on the same cluster. Profiling through the MPI profiling interface quantifies per-rank idle fractions; proportional CPU allocation then lets a second simulation run concurrently with minimal overhead, yielding 1.77x throughput. A sweep to eight concurrent simulations locates the capacity boundary: throughput rises to 4.09x at N=6, where pod count equals cluster vCPU count, then collapses to 0.50x at N=8 as busy-wait MPI progress threads displace useful computation. A single-parameter analytical model fitted on one mesh reproduces all twelve concurrent configurations, measured across a 4x range of mesh sizes, within 6.4%, including the boundary point within 0.8%. Four NAS Parallel Benchmarks kernels (1.92-1.99x at N=2), a half-size cluster (1.68x), and per-pod memory accounting confirm generality across workloads, cluster sizes, and resource dimensions. A dynamic controller automates profiling, In-Place Pod Vertical Scaling (KEP-1287), packing, and fairness monitoring, achieving 3.25x throughput for four simulations with zero pod restarts, the first CPU application of in-place resize to running MPI processes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。