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

面向紧密耦合MPI工作负载的秩感知资源调度

Rank-Aware CPU Reservation and In-Place Adjustment for MPI CFD on Kubernetes

Purdue University(普渡大学);School of Aeronautics and Astronautics(航空与航天学院)

Tianfang Xie

AI总结:

本文提出基于Kubernetes的秩感知资源调度方法,通过动态调整CPU资源分配,优化低负载子域的资源预留,提升集群利用率而不显著影响性能。

摘要:

完全配置的Message Passing Interface(MPI)并行性在计算流体动力学(CFD)求解器中实现接近最优的运行时间。本文针对共享、云管理集群提出一个问题:细粒度的CPU配置是否能减少低负载子域的资源预留,提高集群打包效率而不显著降低性能?我们提出了基于Kubernetes的秩感知资源调度,将每个MPI秩映射到一个Pod,其CPU请求与其子域单元数成比例。我们还展示了In-Place Pod垂直扩展(Kubernetes v1.35 GA)用于中模拟期间CPU调整,无需Pod重启。三个发现:首先,通过Linux CFS带宽控制器设置硬性CPU限制导致MPI_Allreduce屏障处78倍的延迟;仅请求分配可完全消除限制。其次,在非不可中断的c5.xlarge实例上,同心分解与等量CPU相比快19%,而按比例分配进一步提高3%。第三,在16个MPI秩和101K单元网格上,按比例分配比等量分配快20%,同时减少稀疏子域预留的CPU82%,释放6.5个vCPU的调度余量。实验在AWS EC2 c5.xlarge集群(4-16个秩)上进行,运行k3s v1.35。所有脚本和数据已开源。

英文摘要:

Non-uniform meshes in computational fluid dynamics (CFD) can leave some Message Passing Interface (MPI) ranks waiting while others determine execution time. On Kubernetes, reserving a full CPU for every rank can then restrict the admission of further simulations. We investigate rank-aware CPU reservation and in-place request adjustment using OpenFOAM on three Kubernetes testbeds. The framework lowers reservations without hard CPU caps and uses online MPI profiles to adjust each rank's CPU request while the solver runs. We reduced the per-job CPU reservation from 16.0 to 5.9 vCPU, with single-job wall-clock time increasing by at most 6%. With these reservations on twelve nodes, six co-located simulations reached 4.09 times the throughput of sequential execution. Matched controls showed no consistent benefit from proportional request shaping. Beyond the nominal CPU capacity, throughput collapsed with default busy-waiting; yielding waits softened the collapse. In one six-simulation run, the online controller performed 120 in-place resizes of running solvers with zero pod restarts; the pipeline reached 2.5 times the throughput of sequential execution. In a separate comparison on 16 physical cores, reallocating ranks from the far field to the near-wall zone reduced fixed-iteration wall-clock time by factors of 2.0 to 4.2 relative to the original concentric allocation, depending on mesh and iteration horizon. The reallocation also outperformed balanced Scotch partitions. The implementation requires no changes to OpenFOAM, the MPI library, or the Kubernetes scheduler.

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

↑