Abstract
Standard federated scheduling for parallel real-time tasks often results in significant resource underutilization due to the allocation of dedicated processors for fractional workloads. This paper introduces Semi-Federated Scheduling, a hybrid approach that combines dedicated processors for integer requirements with shared processors for fractional workloads. By leveraging uniform multiprocessor theory and a work-conserving runtime dispatcher, the proposed method achieves high system utilization while maintaining strict real-time guarantees for Directed Acyclic Graph (DAG) tasks.
Introduction: The Efficiency Bottleneck in Real-Time Systems
In modern real-time systems, such as autonomous vehicles and robotics, tasks are increasingly complex and parallel. These tasks are typically modeled as Directed Acyclic Graphs (DAGs), where nodes represent computational units and edges represent execution dependencies.
Currently, the gold standard is Federated Scheduling. Under this paradigm, a "heavy" task (one requiring more than one processor) is granted a dedicated set of processors. For instance, if a task requires 2.1 cores to meet its deadline, it is allocated 3 dedicated cores. While this ensures isolation and predictability, it is highly inefficient; in this scenario, 0.9 of a core remains idle. In the worst case, federated scheduling can waste nearly 50% of a system's total processing capacity.
The primary obstacle to improving this efficiency is interference. Moving fractional workloads to a shared processor pool introduces competition with other tasks. Due to internal dependencies within a DAG, even minor delays in a fractional component can propagate, leading to missed deadlines.
Proposed Methodology: Semi-Federated Scheduling
To address these inefficiencies, the researchers propose Semi-Federated Scheduling. This approach grants tasks dedicated cores for their "integer" requirements while packing their remaining fractional workloads onto shared processors.
The transition from dedicated to shared resources is supported by two key innovations:
- Uniform Multiprocessor Theory: The authors derive new response-time bounds for a single DAG executing on a "uniform" multiprocessor (where cores have varying speeds). They demonstrate that sharing a processor is mathematically equivalent to having a dedicated but slower processor.
- Container Tasks and Runtime Dispatcher: Fractional workloads are wrapped into "container tasks." A specialized Runtime Dispatcher ensures that the DAG always prioritizes the fastest available resources, effectively mimicking the behavior of a uniform multiprocessor on standard homogeneous hardware.
The paper introduces two specific algorithms:
- SF[x+1]: Assigns $x$ dedicated cores and one container for the fractional part.
- SF[x+2]: Allows the fractional part to be split into two smaller containers, facilitating more efficient "packing" onto shared processors using a Worst-Fit strategy.
Evaluation and Results
The approach was evaluated using synthetic task sets generated via the Erdös-Rényi method, featuring DAGs with 50 to 250 vertices. The researchers compared their algorithms against five state-of-the-art methods, including standard Federated Scheduling (F-LI) and Global EDF (G-LI).
Key Findings
- Enhanced Schedulability: In a 16-processor environment, Semi-Federated scheduling maintained successful scheduling at 90-100% utilization, whereas traditional Federated scheduling began to fail at 60-70%.
- Superior Performance: The proposed algorithms consistently outperformed global and decomposition-based methods across various processor counts ($m=8, 16, 32$).
- Resource Efficiency: The SF[x+2] variant proved particularly effective at reducing the total number of processors required, especially for tasks with small fractional requirements.
Conclusion and Future Directions
Semi-Federated scheduling offers a significant advancement in the efficient utilization of multi-core processors for real-time parallel tasks. By abstracting shared resources as slower dedicated ones, the authors provide a robust framework for ensuring timing guarantees without the waste inherent in traditional federated approaches.
Future work will address potential overheads from the runtime dispatcher in real OS kernels and extend the model to heterogeneous "big.LITTLE" architectures. Additionally, the integration of work-stealing strategies is planned to support mixed-criticality systems.
Summary updated