Abstract
In real-time systems, gang scheduling is required for tasks that must execute simultaneously across multiple processors. While global scheduling is the traditional approach, it often suffers from significant migration overheads and pessimistic schedulability analysis. This paper introduces Strict Partitioning, a novel framework that divides processors into disjoint subsets and assigns tasks based on their parallelism requirements. By utilizing a First-Fit Decreasing Volume (FFDV) heuristic, the proposed method reduces inter-task interference and enables more precise schedulability tests. Experimental results on synthetic workloads and Edge TPU hardware demonstrate that Strict Partitioning significantly outperforms state-of-the-art global scheduling methods, increasing schedulability by up to 89.4%.
Introduction
Modern real-time applications, particularly those involving deep learning and high-performance computing, frequently utilize "gang tasks." These are parallel jobs that require a fixed number of processors to work in lockstep. Traditionally, researchers have focused on global scheduling, where any task can be dispatched to any available processor. However, global scheduling introduces two primary challenges in practical deployments:
- Migration Costs: Moving a task between processors is computationally expensive. On hardware accelerators like FPGAs or Tensor Processing Units (TPUs), migrating a task often requires reloading massive model weights into local memory, leading to significant latency.
- Analysis Pessimism: Mathematically proving that a set of global gang tasks will meet their deadlines is notoriously difficult. Because tasks have varying parallelism levels, the resulting interference patterns are complex, forcing researchers to rely on "sufficient-only" tests that often assume worst-case scenarios far beyond what occurs in practice.
To address these issues, this paper proposes a shift toward Strict Partitioning, treating the scheduling problem as a two-dimensional bin-packing challenge where the dimensions are time and processor count.
The Strict Partitioning Framework
The core of the proposed approach is the division of the total processor pool into smaller, independent "partitions." A task assigned to a specific partition is restricted to those processors, ensuring it can never interfere with tasks in other partitions.
FFDV Heuristic
To allocate tasks to partitions effectively, the authors employ a First-Fit Decreasing Volume (FFDV) algorithm. Tasks are sorted by their "volume"—the product of their execution time and the number of processors they require. The algorithm groups tasks with similar parallelism levels together. This "volume homogeneity" is critical; it prevents scenarios where a single-core task and a multi-core task are poorly matched, which would otherwise lead to significant processor under-utilization.
Scheduling Variants
The framework introduces two distinct variants for managing tasks within a partition:
- SP-U (Strict Partitioning - Uniprocessor): Tasks within a partition are executed sequentially. This allows the system to utilize simple, exact uniprocessor schedulability tests, such as Earliest Deadline First (EDF) or Deadline Monotonic (DM).
- SP-G (Strict Partitioning - Global): Multiple tasks can run in parallel within a single partition if sufficient cores are available. While this requires more complex global analysis, it maximizes core utilization for high-demand workloads.
Experimental Evaluation
The researchers evaluated Strict Partitioning using a dual-pronged approach involving synthetic simulations and real-world hardware benchmarks.
Synthetic Task Sets
Using the Dirichlet Rescale Algorithm (DRS) tool, the authors generated thousands of task sets, varying the number of processors (8 or 16), task counts, and parallelism ranges. This allowed for a broad comparison against existing global fixed-priority scheduling analyses.
Edge TPU Case Study
To validate the practical benefits, the authors conducted a case study using seven representative Deep Neural Networks (DNNs), including various versions of Inception and ResNet. These models were deployed on ASUS AI Accelerator cards. This setup specifically measured the impact of memory loading overhead and the benefits of static task placement.
Key Results and Insights
Improved Schedulability
In synthetic tests, the partitioned approach demonstrated a massive advantage. The SP-U variant using EDF achieved nearly 98% better performance than global methods in scenarios with low-volume tasks. Overall, the framework scheduled up to 89.4% more task sets than the best-known global scheduling analysis for fixed-priority tasks.
Elimination of 2D-Blocking
In non-preemptive systems, a common failure mode is "2D-blocking," where a small task prevents a high-priority large task from starting because it occupies just one of the many cores the large task needs. Strict partitioning physically isolates these tasks, effectively eliminating this form of priority inversion.
Hardware Efficiency
The Edge TPU benchmarks highlighted a major practical win: memory caching. Because tasks are strictly partitioned and do not migrate, DNN weights can be cached statically in on-chip memory. This eliminates the need for frequent, costly memory reloads from external storage, proving that the method provides both theoretical predictability and physical speed.
Conclusion and Future Work
Strict Partitioning offers a robust alternative to global gang scheduling by prioritizing isolation and volume homogeneity. While the approach can lead to processor fragmentation if task volumes are extremely diverse, its ability to simplify analysis and reduce hardware overhead makes it highly effective for modern accelerators.
Future research directions include the development of semi-partitioned models, where a small subset of tasks may migrate to fill idle gaps, and extending the framework to dynamic systems where task sets are not known entirely offline.
Summary updated