Saath: Speeding up CoFlows by Exploiting the Spatial Dimension

Akshay Jajoo, Rohan Gandhi, Yuanming Hu, Cheng‐Kok Koh · DOI

Abstract

Coflow scheduling is critical for the performance of data-intensive applications in modern data centers. Current state-of-the-art schedulers often approximate Shortest-Job-First (SJF) logic at individual network ports independently. However, this lack of coordination leads to the "out-of-sync" problem, where flows within a single CoFlow finish at vastly different times, and "contention-oblivion," where the spatial footprint of a CoFlow is ignored. We propose SAATH, an online scheduler that addresses these issues through an "all-or-none" scheduling policy and a Least-Contention-First (LCoF) priority mechanism. Our evaluation on an Azure testbed and through large-scale simulations demonstrates that SAATH can reduce median CoFlow Completion Time (CCT) by up to 1.53x and tail (P90) latency by up to 37x compared to existing solutions.

The Challenge: Out-of-Sync and Contention-Oblivious Scheduling

In distributed frameworks like Spark or MapReduce, applications generate CoFlows—groups of parallel data transfers. A CoFlow is only considered complete when its last constituent flow finishes. Consequently, the primary performance metric is the CoFlow Completion Time (CCT).

Existing schedulers like Aalo treat each network port as an independent scheduling entity. This decentralized approach results in two major inefficiencies:

  1. The Out-of-Sync Problem: Flows belonging to the same CoFlow may be scheduled at different times across different ports. If one flow finishes early while its peer is delayed elsewhere, the early completion provides no benefit to the application but prevents other useful work from occupying that port.
  2. Contention-Oblivion: Traditional SJF logic assumes all jobs are equal in their resource footprint. In reality, a CoFlow that spans many ports (a large "spatial" footprint) blocks more potential work than a narrow one. Ignoring this spatial dimension leads to suboptimal global throughput.
Figure 1: Comparison of scheduling approaches. (a) shows a setup with three ports. (b) Aalo's FIFO approach leads to staggered completions and a CCT of 2t. (c) An optimal coordinated schedule reduces CCT to t for most flows.

Empirical evidence from production traces confirms these issues. Even when flows within a CoFlow have identical lengths, existing schedulers often fail to complete them simultaneously, as shown by the high variance in Flow Completion Times (FCTs).

Figure 5: Normalized standard deviation in FCTs for the Aalo scheduler. The solid line shows that even with equal flow lengths, there is significant variation in when flows finish, illustrating the out-of-sync problem.

The SAATH Solution

SAATH (meaning "togetherness") introduces a coordinated scheduling framework designed to exploit the spatial dimension of CoFlows. It relies on four core mechanisms:

  • All-or-None Scheduling: To eliminate the out-of-sync problem, SAATH ensures that either all flows of a CoFlow are scheduled across their respective ports simultaneously, or none are. This synchronizes completions and frees up resources more efficiently.
  • Least-Contention-First (LCoF): SAATH prioritizes CoFlows that conflict with the fewest other pending tasks. By finishing "low-contention" (narrow) jobs first, the scheduler clears the network for more complex, wide-reaching jobs. This is a spatial adaptation of the SJF principle.
  • Global Priority Management: Since flow sizes are often unknown, SAATH uses priority queues. It moves an entire CoFlow to a lower priority as soon as any single flow exceeds its fair-share threshold, ensuring that "heavy" flows do not unfairly hold onto high-priority resources.
  • Work Conservation: While SAATH prefers all-or-none scheduling, it remains work-conservative. If a port would otherwise sit idle, it can pick up flows from partially ready CoFlows to maximize utilization.

Evaluation and Impact

We evaluated SAATH using production traces from Facebook and a large Microsoft Online Service Provider (OSP), alongside a 150-node testbed on Microsoft Azure.

  • Performance Gains: In the OSP trace simulations, SAATH achieved a 1.42x reduction in median CCT and a massive 37x reduction in P90 CCT compared to Aalo. Real-world Azure tests showed a 1.46x improvement in average job completion times.
  • Scalability: The centralized coordinator is highly efficient, with scheduling overhead averaging just 0.57ms, making it suitable for large-scale data center environments.

Conclusion

SAATH demonstrates that coordinating network flows across the spatial dimension is essential for modern data-intensive applications. By prioritizing synchronization and minimizing contention rather than just approximating per-port SJF, SAATH provides a significant leap forward in CoFlow scheduling performance, particularly for tail latencies in congested networks.

Summary updated

BibTeX
@misc{jajoo2021saath,
  author = {Akshay Jajoo and Rohan Gandhi and Yuanming Hu and Cheng‐Kok Koh},
  title = {{Saath: Speeding up CoFlows by Exploiting the Spatial Dimension}},
  year = {2021},
  eprint = {2111.08572},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.08572},
}
Figure