Abstract
Modern data center workloads, such as MapReduce and large-scale matrix operations, consist of jobs composed of multiple non-preemptive tasks. While Shortest Remaining Processing Time (SRPT) is optimal for single-task preemptive scheduling, its application to multi-task environments requires modification. This paper evaluates Modified SRPT (M-SRPT), proving its near-optimality in both worst-case deterministic and heavy-traffic stochastic settings. We show that M-SRPT achieves a competitive ratio bounded by the job size diversity and task non-preemptivity, and converges to the theoretical optimum as system load approaches saturation.
1. Introduction
In classic scheduling theory, the Shortest Remaining Processing Time (SRPT) rule is the gold standard for minimizing average response time in systems where jobs can be preempted at any time. However, modern computing architectures introduce two complexities that challenge this paradigm: the multitask nature of jobs and the non-preemptive nature of individual tasks. A job is only considered complete when its final task finishes, and once a processor begins a task, it typically must run to completion.
This paper bridges the gap between classic single-task scheduling and these complex multi-task workloads. We focus on the Modified Shortest Remaining Processing Time (M-SRPT) algorithm, providing a rigorous theoretical foundation for its performance across various workload models.
2. Notation and Problem Formulation
To analyze the performance of M-SRPT, we define several key parameters related to the workload and system architecture. These parameters allow us to quantify the impact of job size variance and task granularity on scheduling efficiency.
The system consists of $N$ identical machines processing $n$ jobs. Each job $i$ arrives at time $r_i$ with a total workload $p_i$ divided into multiple tasks. The parameter $\eta$ represents the maximum workload of any single non-preemptive task. Two critical ratios are defined: $\alpha$, the job size ratio, and $\beta$, the relative ratio of the longest non-preemptive task. The traffic intensity $\rho$ measures the system load relative to its capacity.
3. The M-SRPT Algorithm
The M-SRPT algorithm extends the SRPT principle to handle multi-task jobs on multiple processors. The logic is defined by three main components:
- Prioritization: At any time $t$, the scheduler calculates the total remaining workload for every active job (the sum of all its unfinished tasks).
- Allocation: Highest priority is assigned to the job with the smallest total remaining workload.
- Execution: Available processors are filled with tasks from the highest-priority jobs. Due to the non-preemptive nature of tasks, if a task is already running, it is allowed to finish. If a processor becomes free, it selects a task from the highest-priority job that still has pending tasks.
4. Theoretical Performance Analysis
The authors evaluate M-SRPT using two primary mathematical frameworks: competitive analysis for worst-case scenarios and stochastic modeling for average-case performance under load.
4.1 Competitive Analysis
In a deterministic, worst-case scenario, M-SRPT is compared against an optimal offline scheduler. The analysis shows that M-SRPT achieves a competitive ratio of $\Theta(\log \alpha + \beta)$. This logarithmic bound indicates that the algorithm's performance degrades gracefully even as the diversity in job sizes ($\alpha$) increases. Furthermore, the parameter $\beta$ quantifies the "non-preemption penalty"—the degree to which large, unstoppable tasks block more urgent work.
4.2 Stochastic Optimality in Heavy Traffic
Using M/GI/N queueing models (Poisson arrivals, general job sizes, $N$ machines), the paper examines performance as the system reaches "heavy traffic" ($\rho \to 1$). A significant result is the proof of asymptotic optimality: as the system load approaches saturation, the ratio of M-SRPT’s mean response time to the theoretical optimal mean response time converges to 1. This optimality holds for finite job sizes and extends to infinite job sizes (e.g., M/M/N models) under specific distribution tail conditions, such as the Matuszewska index.
5. Key Insights
- Scalability: The $O(\log \alpha + \beta)$ bound suggests that M-SRPT is robust against high variance in job and task sizes.
- Efficiency of Work-Conserving Policies: M-SRPT is shown to be essentially optimal among work-conserving algorithms (those that do not allow processors to remain idle when work is available).
- Impact of Chunkiness: The quantification of $\beta$ allows system designers to understand exactly how task granularity affects overall response time.
6. Limitations and Future Work
While M-SRPT provides strong theoretical guarantees, several real-world factors remain for future exploration:
- Heterogeneity: The current model assumes identical processors, whereas modern clouds often use heterogeneous hardware.
- Task Dependencies: The model assumes tasks can be executed in parallel without precedence constraints (e.g., Task B waiting for Task A to finish).
- Information and Overhead: The algorithm assumes perfect knowledge of remaining workloads and ignores the overhead costs of data movement and context switching.
Summary updated