Introduction
In autonomous systems like self-driving cars and robotics, low latency is critical for safety. A mere 100ms delay can result in a vehicle traveling several meters further before reacting to an obstacle. Modern System-on-Chips (SoCs), such as the NVIDIA Jetson AGX Orin, offer a variety of specialized processors (XPUs)—including CPUs, GPUs, and Deep Learning Accelerators (DLAs). However, current middleware like ROS2 and CyberRT often fail to utilize these resources efficiently due to coarse-grained scheduling abstractions and a lack of global resource awareness.
The XAUTO Framework
Researchers at Shanghai Jiao Tong University have developed XAUTO, a runtime system that addresses these inefficiencies through a two-layered approach. XAUTO moves away from traditional "module-level" scheduling, where an entire algorithm (e.g., object detection) is treated as a single task. Instead, it introduces the XNODE abstraction, which decomposes modules into individual algorithmic stages (e.g., image resizing, inference, post-processing).
As shown in the system architecture, XAUTO operates in two phases:
- Offline Phase: The system profiles XNODEs to determine their Worst-Case Execution Time (WCET) on different XPUs. An Integer Linear Programming (ILP) solver then analyzes the application's Directed Acyclic Graph (DAG) to find a near-optimal global configuration for XPU assignments and task priorities.
- Online Phase: The runtime system manages task execution across partitioned schedulers for each XPU, utilizing hardware-specific preemption mechanisms to ensure high-priority tasks meet their deadlines.
Fine-Grained Scheduling Benefits
By breaking modules into XNODEs, XAUTO enables "stage-level" scheduling. This allows the system to overlap different stages of various modules across multiple XPUs simultaneously. For example, while one module is performing GPU-based inference, another can perform CPU-based preprocessing.
A key insight from this research is that the "fastest" XPU for a specific task is not always the best choice for the entire system. Assigning a task to a slower but idle XPU (like a DLA) can reduce total end-to-end latency by freeing up high-demand resources (like the GPU) for more critical path tasks.
Key Results and Evaluation
The researchers evaluated XAUTO using both synthetic workloads and a realistic autonomous driving perception pipeline.
- Latency Reduction: In a driving case study involving lane detection and obstacle tracking, XAUTO achieved a 1.61× speedup in end-to-end latency compared to ROS2.
- Scalability: Across 350 unique synthetic DAGs, XAUTO consistently outperformed both ROS2 and standard heuristic algorithms (like HEFT), with performance gains ranging from 1.23× to 2.01×.
- Overhead: The ILP solver typically converges within one minute for standard pipelines, and the runtime scheduling overhead remains minimal, consuming less than 0.5% of CPU utilization.
Conclusion and Future Work
XAUTO demonstrates that holistic, fine-grained scheduling is essential for maximizing the performance of heterogeneous SoCs in autonomous applications. While the current system relies on static offline profiling, future iterations aim to incorporate dynamic XPU reassignment and priority adjustment to better handle the unpredictable nature of real-world driving environments.
Summary updated