Abstract
Integrated CPU/GPU architectures (iGPUs) are increasingly prevalent in autonomous systems due to their favorable size, weight, and power (SWaP) characteristics. However, the shared memory pool presents complex trade-offs between performance and memory footprint across different memory management policies. This paper introduces an analytical model to quantify overheads in Device, Managed, and Host-Pinned memory policies and proposes a runtime scheduler that leverages kernel overlapping. Experimental results on NVIDIA Jetson and Drive platforms demonstrate up to a 69% reduction in memory usage and a 58% improvement in response times.
Introduction: The iGPU Memory Management Challenge
Modern autonomous vehicles and drones utilize iGPUs where the CPU and GPU share a physical DRAM pool. Frameworks like CUDA offer various memory management (MM) policies—Device Memory (D), Managed Memory (M), and Host-Pinned Memory (H)—but their impact on multi-tasking performance is often poorly understood. Choosing an inappropriate policy can lead to memory exhaustion or missed real-time deadlines in resource-constrained environments.
Methodology: Analytical Modeling and Scheduling
The authors developed a two-part solution to co-optimize performance and memory:
- Analytical Performance Model: A lightweight model quantifying overheads. Device memory is modeled via an adapted LOGGP approach; Managed memory accounts for "hidden" overheads like page mapping and cache flushing; Host-Pinned memory models latency penalties from bypassing GPU caches to access memory.
- Runtime Scheduler: An Earliest Deadline First (EDF) scheduler that strategically pairs kernels. It switches to Managed or Host-Pinned memory only when the overhead can be recovered through overlapping with other tasks, ensuring Device memory tasks fill the idle gaps created by Managed memory mapping.
Key Insights: Exploiting the Overlapping Potential
A critical discovery was the "hidden" idle period in Managed Memory (M), where the GPU stalls during initial data mapping. By mixing policies—running a Device-memory kernel alongside a Managed-memory kernel—the system can achieve "execution overlapping." The GPU executes the Device-memory kernel while the driver handles page table setup for the Managed-memory kernel, effectively hiding the mapping latency.
Results and Evaluation
Evaluated on NVIDIA Jetson TX2, Drive PX2, and Xavier AGX using benchmarks (Rodinia), drone software (YOLO), and Autoware, the system achieved:
- Model Accuracy: 9.3% average error rate in predicting system overhead.
- Memory Efficiency: 50% reduction for Autoware on Drive PX2 and 69% for drone obstacle detection on TX2.
- Performance Gains: Response time improvements of 10% for Autoware and 58.9% for drone software on the TX2.
- GPU Utilization: Maintained high GPU utilization (~75%) compared to 56% when using Managed Memory alone.
Conclusion and Future Work
While currently tailored to the CUDA ecosystem, this work demonstrates that intelligent memory management can decouple the traditional trade-off between memory footprint and latency. Future work includes extending these optimizations to end-to-end autonomous pipelines and addressing complex cache interference in high-congested multitasking scenarios.
Summary updated