[Paper Review] Efficient Data-Plane Memory Scheduling for In-Network Aggregation
This paper proposes ESA, a data-plane memory scheduler that uses preemptive allocation and priority-based scheduling to improve switch memory utilization in in-network aggregation (INA) for distributed training. By dynamically reassigning aggregators based on task priority—driven by model layer, communication-to-computation ratio, and remaining time—ESA reduces average job completion time by up to 1.35× compared to state-of-the-art INA systems.
As the scale of distributed training grows, communication becomes a bottleneck. To accelerate the communication, recent works introduce In-Network Aggregation (INA), which moves the gradients summation into network middle-boxes, e.g., programmable switches to reduce the traffic volume. However, switch memory is scarce compared to the volume of gradients transmitted in distributed training. Although literature applies methods like pool-based streaming or dynamic sharing to tackle the mismatch, switch memory is still a potential performance bottleneck. Furthermore, we observe the under-utilization of switch memory due to the synchronization requirement for aggregator deallocation in recent works. To improve the switch memory utilization, we propose ESA, an $\underline{E}$fficient Switch Memory $\underline{S}$cheduler for In-Network $\underline{A}$ggregation. At its cores, ESA enforces the preemptive aggregator allocation primitive and introduces priority scheduling at the data-plane, which improves the switch memory utilization and average job completion time (JCT). Experiments show that ESA can improve the average JCT by up to $1.35 imes$.
Motivation & Objective
- Address the performance bottleneck caused by limited switch memory in in-network aggregation (INA) for distributed training.
- Overcome underutilization of switch memory due to synchronization constraints and static memory allocation in existing INA solutions.
- Improve average job completion time (JCT) by enabling dynamic, priority-driven memory scheduling in the data plane.
- Ensure reliability and correctness in a preemption-based system where high-priority tasks may evict low-priority ones.
- Design a scalable and efficient memory scheduler that operates within the resource-constrained environment of programmable switches.
Proposed method
- Introduce a preemptive allocation primitive in the data plane, allowing high-priority aggregation tasks to evict low-priority ones from switch memory.
- Implement priority scheduling based on three heuristics: model front layers, high communication-to-computation ratio, and short remaining job time.
- Use end-host parameter servers to assist in handling complex corner cases (e.g., preemption, packet loss), reducing burden on the switch data plane.
- Design a reliability channel and reminder mechanism to prevent memory leaks and sliding window blocking during preemption.
- Apply a downgrading policy to avoid thrashing and idle periods in aggregators, balancing preemption frequency and aggregation efficiency.
- Integrate the scheduler into a programmable switch environment using a control plane that assigns priorities and manages state transitions.
Experimental results
Research questions
- RQ1How can switch memory utilization be improved in in-network aggregation (INA) when memory is scarce and shared among multiple distributed training jobs?
- RQ2What priority criteria can effectively guide preemption decisions in INA to minimize job completion time without sacrificing correctness?
- RQ3How can preemption be safely implemented in the data plane of programmable switches without introducing memory leaks or blocking?
- RQ4What is the performance impact of priority-based preemption compared to non-preemptive or random preemption strategies in multi-job INA workloads?
- RQ5To what extent does ESA outperform existing INA systems like SwitchML and ATP in terms of job completion time and memory utilization?
Key findings
- ESA improves average job completion time (JCT) by up to 1.35× compared to ATP and 1.89× compared to SwitchML in evaluation experiments.
- ESA increases switch memory utilization by 2.27× for communication-intensive models (DNN A) and 1.9× for balanced models (DNN B) compared to SwitchML.
- The priority scheduling component alone provides a 1.35× speedup over ATP in pure DNN A workloads, with greater gains in mixed-model and high-worker scenarios.
- Preemption with intelligent priority assignment reduces idle time and thrashing in aggregators, leading to more consistent and efficient memory usage.
- The reliability channel and reminder mechanism successfully prevent memory leaks and sliding window blocking during preemption events.
- ESA’s performance improvement is most significant under high job contention and with communication-heavy models, validating the design’s effectiveness in realistic workloads.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.