Asymptotic response time analysis for multi-task parallel jobs

Weina Wang, Mor Harchol-Balter, Haotian Jiang, Alan Scheller-Wolf, R. SrikantarXiv 2017

Abstract

We study delay of jobs that consist of multiple parallel tasks, which is a critical performance metric in a wide range of applications such as data file retrieval in coded storage systems and parallel computing. In this problem, each job is completed only when all of its tasks are completed, so the delay of a job is the maximum of the delays of its tasks. Despite the wide attention this problem has received, tight analysis is still largely unknown since analyzing job delay requires characterizing the complicated correlation among task delays, which is hard to do. We first consider an asymptotic regime where the number of servers, $n$, goes to infinity, and the number of tasks in a job, $k^{(n)}$, is allowed to increase with $n$. We establish the asymptotic independence of any $k^{(n)}$ queues under the condition $k^{(n)} = o(n^{1/4})$. This greatly generalizes the asymptotic-independence type of results in the literature where asymptotic independence is shown only for a ifxed constant number of queues. As a consequence of our independence result, the job delay converges to the maximum of independent task delays. We next consider the non-asymptotic regime. Here we prove that independence yields a stochastic upper bound on job delay for any $n$ and any $k^{(n)}$ with $k^{(n)}\le n$. The key component of our proof is a new technique we develop, called "Poisson oversampling". Our approach converts the job delay problem into a corresponding balls-and-bins problem. However, in contrast with typical balls-and-bins problems where there is a negative correlation among bins, we prove that our variant exhibits positive correlation.

Introduction

In modern computing, a "job" is rarely a single unit of work. Whether running a MapReduce "map" phase or retrieving a file from a coded storage system, a job is typically split into $k$ parallel tasks distributed across $n$ servers. The critical performance bottleneck is that the job is not finished until the very last task is completed.

Mathematically, the job delay is the maximum of the individual task delays. If these tasks were independent, the analysis would be straightforward. However, in real-world systems, tasks are inherently correlated: they may arrive simultaneously or share congested servers. This correlation makes calculating the exact distribution of job delay an open problem for almost all cases except the simplest two-server systems. This research bridges this gap by determining the conditions under which these correlations can be safely ignored.

System Model and Notation

The study focuses on the limited fork-join model. To analyze the system as it scales, the authors define several key parameters related to server count, task distribution, and workload.

Table of notation used in the analysis of the $n$-server system.

The notation $k^{(n)}$ represents the number of tasks in a job within an $n$-server system, while $T^{(n)}$ and $\hat{T}^{(n)}$ represent the actual job delay and the delay calculated under the independence assumption, respectively.

Methodology

The authors employ a combination of probability theory and innovative "coupling" techniques to analyze the system's behavior.

Asymptotic Analysis and Coupling

The research investigates the limit as the number of servers ($n$) goes to infinity. Unlike previous work that only considered a fixed number of tasks, this study allows $k$ to grow alongside the system size. The proof structure relies on establishing relationships between various steady-state distributions through a series of lemmas and theorems.

Theoretical framework illustrating the relationships between steady-state distributions and the lemmas used to prove asymptotic independence.

Poisson Oversampling

A novel technical contribution of this paper is "Poisson oversampling." To prove that task delays are "associated" (positively correlated), the authors developed a technique where the system is observed not just at job arrival times, but also at the jump times of an independent Poisson process. This "extra randomness" facilitates proving that steady-state workloads are positively associated, converting the job delay problem into a variant of the balls-and-bins problem.

Key Results

The analytical findings were validated using extensive discrete-event simulations of systems ranging from $n=4$ to $n=16,384$ servers across various task-scaling regimes and service time distributions (Exponential, Deterministic, Pareto).

The $o(n^{1/4})$ Threshold

The researchers established that if the number of tasks $k$ grows slower than the fourth root of the number of servers $n$ ($k = o(n^{1/4})$), the queues become asymptotically independent. This is a significant generalization of previous "propagation of chaos" results. In this regime, job delay converges exactly to the maximum of independent task delays.

Stochastic Dominance and the "Safe" Assumption

The authors prove that in the limited fork-join model, steady-state workloads exhibit positive association. Consequently, the "independence assumption"—treating tasks as if they do not affect each other—always results in a delay that is stochastically larger than the actual delay. For engineers, this means the independence upper bound is a "safe" bet; actual system performance will likely be faster than the model predicts.

The Breaking Point

The simulations and proofs show that when the number of tasks is a linear fraction of the servers ($k = \Theta(n)$), the independence assumption fails, and the queues remain correlated even as the system grows.

Conclusion and Future Work

While the $n^{1/4}$ condition is mathematically proven, simulations suggest that independence might hold up to $k = n^{1/2}$ or higher. Future research is needed to identify the exact "critical value" where asymptotic independence breaks down. Additionally, extending the "oversampling" proofs to other scheduling policies, such as Processor Sharing or Shortest Remaining Processing Time, remains an important next step for the field.

Summary updated

BibTeX
@misc{wang2017asymptotic,
  author = {Weina Wang and Mor Harchol-Balter and Haotian Jiang and Alan Scheller-Wolf and R. Srikant},
  title = {{Asymptotic response time analysis for multi-task parallel jobs}},
  year = {2017},
  eprint = {1710.00296},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.00296},
}
Figure