NCCLbpf:面向GPU集体通信的验证、可组合策略执行
NCCLbpf: Verified, Composable Policy Execution for GPU Collective Communication
AI总结:
NCCLbpf通过验证和可组合的策略执行框架,提升GPU集体通信性能,减少停机时间并增强安全性。
摘要:
NCCL是大规模分布式训练中GPU集体通信的事实标准,严重依赖插件来定制运行时行为。然而,这些插件在NCCL的地址空间中作为未经验证的原生代码执行,可能导致作业崩溃、静默状态腐蚀以及在策略更新期间的停机。受内核可扩展性模型的启发,我们引入了NCCLbpf,一种经过验证的高性能扩展框架,将用户空间eBPF运行时直接嵌入到NCCL现有的插件接口中,而无需修改NCCL本身。NCCLbpf提供加载时静态验证以防止不安全插件执行,结构化的跨插件映射使策略具有可组合性和闭环适应能力,并提供原子策略热加载,消除了以往策略更新所需停机时间。在8块NVIDIA B300 GPU通过NVLink连接的评估中,NCCLbpf对每个调谐决策的开销仅为80-130纳秒(不到集体延迟的0.03%),在加载时阻止了所有测试的不安全插件行为,并启用了一种基于消息大小的eBPF策略,在4-128 MiB范围内将AllReduce吞吐量提高了27%以上。
英文摘要:
NCCL is the de facto standard for collective GPU communication in large-scale distributed training, relying heavily on plugins to customize runtime behavior. However, these plugins execute as unverified native code within NCCL's address space, risking job crashes, silent state corruption, and downtime from restarts during policy updates. Inspired by kernel extensibility models, we introduce NCCLbpf, a verified, high-performance extension framework embedding a userspace eBPF runtime directly into NCCL's existing plugin interfaces, without modifying NCCL itself. NCCLbpf offers load-time static verification to prevent unsafe plugin execution, structured cross-plugin maps enabling composable policies and closed-loop adaptation, and atomic policy hot-reloads eliminating downtime previously required for policy updates. Evaluations on 8x NVIDIA B300 GPUs connected via NVLink demonstrate that NCCLbpf imposes just 80-130 ns overhead per tuner decision (less than 0.03% of collective latency), prevents all tested unsafe plugin behaviors at load-time, and enables a message-size-aware eBPF policy that improves AllReduce throughput by up to 27% over NCCL's default in the 4-128 MiB range.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。