Operating System Support for Accelerators as First-Class Compute Elements in Heterogeneous Systems
Mohammad Shahidzadeh, Lesley Shannon
Abstract
Heterogeneous systems-on-chip (SoCs) increasingly rely on domain-specific hardware accelerators (HAs) to deliver performance and energy efficiency gains beyond what general-purpose processors can provide. However, operating systems (O/S), such as Linux, assume that processors are the Compute Elements (CEs) and HAs are peripheral devices rather than specialized CEs. As a result, HA execution incurs substantial software (SW) overheads that reduce the effective benefits of hardware (HW) acceleration. This work demonstrates that significant inefficiencies arise from ``O/S peripheral device taxes'' (O/S taxes), including SW stack-accelerator communication, invocation, interrupt handling, and scheduling. We built MEERKAT, a Field-Programmable Gate Array (FPGA)-based framework for configurable multicore systems that include HAs; it allows the user to migrate Linux O/S support from SW to HW and identify, study, and quantify the impact. Here we study four major sources of O/S tax and introduce techniques to mitigate them. These include a virtual-memory-aware (VMA) communication method that enables efficient HA access to application data, a lightweight HA invocation interface, Interrupt Policy Adaptation (IPA) for dynamic polling and interrupt selection, and an HA-aware scheduler that dynamically distributes work across Central Processing Units (CPUs) and multiple HA instances. Experimental results demonstrate up to 260× faster communication and 2--6× performance improvements in wall-clock time over conventional schedulers. Furthermore, our study reveals that overall system performance depends not only on HA speed, but also on O/S overheads, resource availability, and scheduling decisions. These findings highlight the importance of treating HAs as first-class computational resources and motivate a more accelerator-centric O/S design for future heterogeneous systems.
Create a lesson
Related papers
Hard and Soft Real-Time DNN Inference Scheduling on Heterogeneous Multi-Accelerator Systems via Reinforcement Learning
Shared title terminology · Francesco Giulio Blanco, Enrico Russo, Giuseppe Ascia et al.
BitPrefill: W1.58A4 Tensor-Core Acceleration for Compute-Bound LLM Prefill
Shared title terminology · Fang Chen, Xuming Chen, Sanmukh Kuppannagari et al.
ReCIM-HD: A 40 nm On-Device Learning Accelerator with Hyperdimensional Computing via Importance-Based Hybrid Digital-ReRAM CIM
Shared title terminology · Keming Fan, Chang Eun Song, Soumil Jain et al.
Accelerating 3D Gaussian Splatting Training through Selective Freezing and Computation Caching
Shared title terminology · He Zhu, Zhiheng Dai, Zihan Liu et al.
Chimera: A Configurable LLM Decode Accelerator Architecture with Compute-Memory-Floorplan Co-Design for HBM-Equipped Multi-Die FPGAs
Shared title terminology · Zhiheng Chen, Yifan Zhang, Yu-An Chou et al.
CHARMING: Parallel Edge AI Acceleration Across Tensor Processing and In-Memory Computation
Shared title terminology · Md Omar Faruque, Jingang Jin, João Paulo C. de Lima et al.