TL;DR
This paper introduces a Dynamic Adaptive Scheduling (DAS) framework for Domain-Specific Systems-on-Chip (DSSoCs). DAS intelligently switches between a fast, low-overhead scheduler and a sophisticated, high-performance scheduler based on real-time system workload, significantly improving execution time and energy efficiency compared to using either scheduler alone.
What Problem Does This Paper Address?
Modern systems-on-chip (SoCs), particularly Domain-Specific SoCs (DSSoCs), are increasingly incorporating specialized hardware accelerators alongside general-purpose CPU cores. These DSSoCs are designed for specific application domains (e.g., AI, communications) and aim to achieve high performance and energy efficiency. However, traditional operating system (OS) schedulers, which are often designed for general-purpose computing, can become a bottleneck. The problem is that these schedulers can have execution times that are orders of magnitude longer than the tasks they are scheduling, especially when tasks are executed on highly optimized hardware accelerators that can complete in nanoseconds. This overhead negates the benefits of the specialized hardware. The paper addresses the challenge of finding a scheduling strategy that can keep up with these fast, nanosecond-scale tasks while still making intelligent decisions to optimize performance and energy consumption.
Methods
The core of the proposed solution is the Dynamic Adaptive Scheduling (DAS) framework. DAS operates by combining two types of schedulers:
- Fast Scheduler (LUT): A simple, low-overhead scheduler (implemented as a lookup table) that makes quick decisions, suitable for less complex workloads. Its overhead is minimal, around 6 ns.
- Sophisticated Scheduler (ETF): A more complex scheduler (Earliest Task First) that makes more optimal decisions but incurs a higher overhead.
The novelty lies in the runtime classifier that dynamically decides which scheduler to use. This classifier is trained offline using a machine learning model (specifically, a decision tree with a depth of 2). The training process involves:
- Data Generation: Running applications under both fast and sophisticated schedulers for various workloads and data rates.
- Feature Selection: Identifying key performance counters (like data rate and earliest availability time of CPU clusters) that best predict which scheduler will perform better.
- Model Training: Training a decision tree classifier to predict the optimal scheduler based on these features.
At runtime, a background process continuously updates the performance counters. The classifier then uses these counters to predict whether the fast or sophisticated scheduler is more appropriate for the next task, aiming to achieve the best of both worlds: low overhead when possible and optimal decisions when necessary.
Datasets
The paper uses five real-world streaming applications (Range Detection, Temporal Mitigation, WiFi-TX, WiFi-RX, and a proprietary industrial application) to construct 40 distinct workloads. These workloads were used for both training the DAS classifier and evaluating its performance. The workloads were generated by varying the mix of applications and their data rates, covering a wide spectrum from low to high system congestion.
Key Insights and Ideas
- The scheduler overhead is a critical bottleneck: For DSSoCs with nanosecond-scale tasks, even a few microseconds of scheduler overhead can completely negate the benefits of hardware acceleration.
- No single scheduler is always best: The optimal scheduler depends heavily on the system workload. A simple, fast scheduler excels under low load, while a sophisticated, slow scheduler is better under high load.
- Dynamic adaptation is key: By intelligently switching between schedulers at runtime, DAS can achieve better performance and energy efficiency than any single scheduler.
- Machine learning can predict scheduler needs: A lightweight decision tree classifier, trained on a few key performance counters, can effectively predict the optimal scheduler choice without introducing significant overhead.
- Hardware implementation validates simulation: The theoretical framework and simulation results are further validated on a real FPGA hardware platform, demonstrating the practical applicability of DAS.
Key Results
- Simulation Results:
- DAS achieved up to a 1.29x speedup and a 45% lower EDP compared to the sophisticated scheduler under low data rates.
- DAS achieved up to a 1.28x speedup and a 37% lower EDP compared to the fast scheduler when workload complexity increased.
- Overall, DAS consistently outperformed both individual schedulers across 40 different workloads.
- Hardware Implementation Results (on Xilinx Zynq ZCU102 FPGA):
- DAS reduced execution time by up to 48% and EDP by up to 52% compared to the best-performing individual scheduler (LUT or ETF) for specific workloads.
- The average scheduling latency overhead of DAS was measured at 65 ns.
- The energy overhead of DAS per scheduling decision was 27.2 nJ.
Limitations and Future Work
- Hardware Accuracy: The classification accuracy on the hardware platform (82.02%) was slightly lower than in simulation (85.48%), attributed to runtime variations in the operating system and memory.
- Feature Set: The current DAS classifier uses task-agnostic features (data rate, cluster availability). Future work could explore incorporating task-specific information for potentially even better adaptation, though this would likely increase overhead.
- Scalability: While the paper demonstrates effectiveness, further investigation into the scalability of DAS for extremely large and complex DSSoC architectures could be beneficial.
- Generalizability: The paper focuses on streaming applications. Extending DAS to other application models (e.g., task-parallel) could broaden its applicability.
Summary updated