Co-Optimizing Performance and Memory FootprintVia Integrated CPU/GPU Memory Management, anImplementation on Autonomous Driving Platform

Soroush Bateni, Zhendong Wang, Yuankun Zhu, Yang Hu, Cong Liu

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.

Figure 2: Normalized GPU time and utilization across different memory policies (D, M, H) for various benchmarks.

Methodology: Analytical Modeling and Scheduling

The authors developed a two-part solution to co-optimize performance and memory:

  1. 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.
  2. 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.

Figure 4: Illustration of overlapping potential, showing how co-running D and M policies can fill GPU idle periods.

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

Abstract

Cutting-edge embedded system applications, such as self-driving cars and unmanned drone software, are reliant on integrated CPU/GPU platforms for their DNNs-driven workload, such as perception and other highly parallel components. In this work, we set out to explore the hidden performance implication of GPU memory management methods of integrated CPU/GPU architecture. Through a series of experiments on micro-benchmarks and real-world workloads, we find that the performance under different memory management methods may vary according to application characteristics. Based on this observation, we develop a performance model that can predict system overhead for each memory management method based on application characteristics. Guided by the performance model, we further propose a runtime scheduler. By conducting per-task memory management policy switching and kernel overlapping, the scheduler can significantly relieve the system memory pressure and reduce the multitasking co-run response time. We have implemented and extensively evaluated our system prototype on the NVIDIA Jetson TX2, Drive PX2, and Xavier AGX platforms, using both Rodinia benchmark suite and two real-world case studies of drone software and autonomous driving software.
BibTeX
@inproceedings{bateni2020co,
  author = {Soroush Bateni and Zhendong Wang and Yuankun Zhu and Yang Hu and Cong Liu},
  title = {{Co-Optimizing Performance and Memory FootprintVia Integrated CPU/GPU Memory Management, anImplementation on Autonomous Driving Platform}},
  booktitle = {RTAS},
  year = {2020},
  doi = {10.1109/rtas48715.2020.00007},
}
Figure