À la racine du parallélisme

Thomas Bonald, Céline Comte, Fabien MathieuHAL 2017

TL;DR

This paper investigates the optimal degree of parallelism in a cluster of servers processing requests. They found that the ideal number of servers to handle a single request is roughly the square root of the total number of servers at low to moderate load, but this optimal number decreases to just two servers at very high loads. This work provides a theoretical framework for understanding how to balance the benefits of parallel processing against the overhead of managing it.

What Problem Does This Paper Address?

In modern computing, parallel processing across multiple servers is crucial for handling large workloads and reducing response times. However, simply increasing the number of servers involved in processing a single request (parallelism) isn't always beneficial. Too little parallelism means servers are underutilized, while too much can lead to unnecessary complexity and contention, potentially slowing things down. This paper addresses the fundamental question: what is the optimal level of parallelism for a cluster of servers to minimize the average number of requests waiting on each server? Traditional queueing models don't adequately capture this trade-off, prompting the authors to explore a more recent model that accounts for requests being distributed across a fixed number of randomly chosen servers.

Methods

The authors employ a mathematical queueing model to analyze the system. They consider a cluster of $N$ servers, each with a processing capacity $\mu$. Requests arrive according to a Poisson process with intensity $N\lambda$, and each request is assigned to $d$ servers chosen randomly and independently of the system's state. The processing time for each request follows an exponential distribution. The core of their analysis involves deriving and analyzing formulas for the average number of requests per server, denoted as $L_d(\rho)$, where $\rho$ is the system load. They specifically focus on a metric $\alpha_d(\rho)$ which represents the ratio of the average number of requests per server with parallelism $d$ to that with parallelism $d=1$ (no parallelism). This metric helps quantify the performance gain. The proofs involve detailed mathematical derivations, including approximations and asymptotic analysis for different load regimes (low, moderate, and high).

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • The Square Root Rule: The most striking insight is the "square root rule" for optimal parallelism at low loads. The ideal number of servers to handle a single request is approximately $\sqrt{N}$, where $N$ is the total number of servers. This suggests a sweet spot where the benefits of parallel processing are maximized without incurring excessive overhead.
  • Load-Dependent Optimality: The optimal degree of parallelism is not static; it changes significantly with the system load. As the load increases, the optimal number of parallel servers decreases.
  • The "Two Server" Minimum: At very high loads, the optimal parallelism drops to a minimum of $d=2$. This implies that beyond a certain point, adding more parallel servers to a single request offers diminishing returns and can even be detrimental.
  • Symmetry Breaking: The paper highlights how the symmetry of the problem (in terms of server choices) breaks down as the load increases, leading to different optimal strategies.

Key Results

  • Low Load: For low system loads ($\rho \to 0$), the optimal parallelism $d^*$ is approximately $\sqrt{N}$. The performance gain relative to no parallelism ($\alpha_d(\rho)$) is shown to be approximately $\frac{1-\rho}{2 - (\frac{d^2}{N} + \frac{N}{d^2})}$.
  • High Load: For high system loads ($\rho \to 1$), the optimal parallelism is $d=2$. The paper shows that $\alpha_d(\rho) \to \frac{d}{N}$ as $\rho \to 1$ for $d \ge 2$.
  • Moderate Load: The paper conjectures that $d=\sqrt{N}$ remains near-optimal for moderate loads, supported by numerical evaluations.

Limitations and Future Work

  • Assumptions: The model relies on specific assumptions, such as Poisson arrivals and exponentially distributed service times. The authors acknowledge that the sensitivity of the optimal degree of parallelism to the service time distribution is an area for future work.
  • Conjecture: The near-optimality of $d=\sqrt{N}$ for moderate loads is presented as a conjecture based on numerical evidence, and a formal proof is suggested for future research.
  • Generalization: The paper focuses on a specific model. Future work could explore more complex scenarios, such as non-uniform server capacities, different arrival processes, or more sophisticated request distribution strategies.

Summary updated

BibTeX
@inproceedings{bonald2017la,
  author = {Thomas Bonald and Céline Comte and Fabien Mathieu},
  title = {{À la racine du parallélisme}},
  booktitle = {HAL},
  year = {2017},
}
Figure