arXiv:2610.33380cs.AROct 2026

Manuscript Offprint

arXiv:2610.33380

Operating System Support for Accelerators as First-Class Compute Elements in Heterogeneous Systems

Mohammad Shahidzadeh, Lesley Shannon

Mohammad Shahidzadeh† and Lesley Shannon‡

Simon Fraser University, Canada†, Simon Fraser University, Canada‡

msa417@sfu.ca

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 1^{1}, an 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×260\times faster communication and 2−6×2-6\times 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.

I. INTRODUCTION

With the end of Dennard scaling, heterogeneous System-on-Chips (SoCs) that integrate general-purpose processors with specialized hardware (HW) accelerators have emerged as a key approach for sustaining performance growth and improving energy efficiency [8], [10]. As a result, considerable research effort has been devoted to designing increasingly faster and more specialized accelerators. However, these accelerators are often developed and evaluated in isolation, with limited consideration of the applications they ultimately serve or the system-level environment in which they operate. In particular, relatively little attention has been paid to how Operating System (O/S) abstractions, resource management policies, and software (SW) interfaces influence accelerator utilization and overall application performance [11], [25].

Despite their growing importance, accelerators continue to be treated as peripheral devices within most O/Ss. Modern O/Ss were designed around a CPU-centric execution model in which Central Processing Unit (CPU) cores are the primary Compute Elements CE responsible for scheduling, resource management, and execution. Accelerators, in contrast, are typically accessed through device-driver interfaces and remain outside O/S abstractions [18]. As accelerators increasingly perform a substantial fraction of application computation, We argue that accelerators should increasingly be treated as first-class CE rather than passive devices [39].

The lack of first-class O/S support introduces a variety of overheads that reduce the effective benefits of HW acceleration [11], [25]. These overheads can significantly impact application performance, particularly for fine-grained accelerators and latency-sensitive workloads. In this work, we refer to such overheads as “O/S peripheral device taxes” (O/S taxes). There are four major sources of overhead in tightly integrated heterogeneous SoCs: communication, invocation, interrupt handling, and scheduling overheads.

One major source of O/S tax arises from communication between SW and HW accelerators [9], [23], [41]. In particular, enabling accelerators to operate directly on virtual-memory-managed data introduces three fundamental challenges. First, accelerators require access to physical memory locations while applications operate using virtual addresses. Second, application data is often distributed across non-contiguous physical pages, complicating efficient accelerator data movement. Third, tightly integrated accelerators must maintain memory consistency with processor caches. To address these challenges, we introduce Virtual-Memory-Aware (VMA) method consisting of three complementary mechanisms: a Custom Instruction Virtual Address Translation (CI-VAT) for accelerator-side address translation, a Scatter-Gather Page Transfer (SGPT) mechanism for efficient non-contiguous memory access, and a HW-Managed Accelerator Coherence (HMAC) protocol that maintains consistency between accelerator and processor caches. Together, these mechanisms enable accelerators to operate directly on virtual-memory-managed application data without requiring expensive SW-mediated address translation, data copying, or coherence management.

1^{1}https://github.com/mohammadshahidzade/MEERKAT

Accelerator execution is also accompanied by invocation and completion overheads [39]. Unlike CPU execution, which is directly managed by the cores with a simple function call, accelerator execution typically requires traversing multiple SW layers including user-space libraries, system calls, device drivers, and runtime frameworks before computation can begin. Similarly, accelerator completion is commonly communicated through interrupts that trigger additional O/S processing and context switches. While these overheads may appear negligible for long-running accelerators, they can become a significant fraction of total execution time for fine-grained workloads and frequently invoked accelerators. To reduce these costs, we replace expensive Input/Output Control (IOCTL)-based accelerator requests with a lightweight function-call interface that minimizes SW overhead during accelerator invocation. Furthermore, we introduce Interrupt Policy Adaptation (IPA), a runtime mechanism that dynamically selects between polling and interrupt-driven completion handling according to the predicted accelerator execution time. Together, these techniques reduce invocation latency, avoid unnecessary context switches, and lower the O/S tax associated with accelerator execution.

Existing O/S schedulers introduce another source of inefficiency [13], [27]. Traditional schedulers were developed for homogeneous multicore systems in which execution resources are largely interchangeable. In heterogeneous systems, however, CPUs and accelerators exhibit widely different performance and energy characteristics. Nevertheless, users are often responsible for explicitly selecting accelerators, while the O/S remains largely unaware of accelerator capabilities and availability. This can lead to suboptimal resource utilization and increased execution time [26], [27]. In this work, we demonstrate that treating CPUs and accelerators as a unified pool of computational resources enables more effective scheduling decisions. By dynamically selecting between CPUs and multiple accelerator instances based on workload characteristics and resource availability, the scheduler can improve system utilization and overall application performance. Furthermore, we show that, similar to multicore CPU systems, the benefits of multiple accelerators can only be fully realized when they are managed by an accelerator-aware scheduler.

The key contributions of this paper are summarized as follows:

• We develop MEERKAT, an Field-Programmable Gate Array (FPGA)-based Linux research framework for systematically studying O/S taxes in heterogeneous SoCs, enabling detailed analysis of CPU–accelerator interactions and cross-layer performance bottlenecks.

• We propose a HW–SW co-designed communication method consisting of CIVAT, SGPT, and HMAC, enabling accelerators to efficiently access virtual-memory-managed application data while achieving up to 260×260\times lower communication overhead with near-zero HW cost.

• We reduce accelerator invocation and completion overheads through a lightweight function-call-based execution interface and IPA, a runtime mechanism that dynamically selects between polling and interrupt-driven completion based on predicted accelerator execution time.

• We extend the O/S scheduler with accelerator-aware resource selection that treats CPUs and multiple accelerator instances as a unified pool of computational resources, achieving up to 2−6×2-6\times performance improvement in wall clock time over conventional accelerator-selection approaches.

• We characterize the system-level behavior of heterogeneous multi-accelerator platforms and demonstrate that application performance depends not only on accelerator speed, but also on O/S overheads, resource availability, and scheduling decisions, highlighting the importance of system-level optimization for future accelerator-rich systems.

The remainder of this paper is organized as follows. Section II reviews existing frameworks and prior work on O/S taxes. Section III presents our framework and the techniques employed to reduce these taxes. Section IV and V evaluates the proposed approach, quantifies the resulting performance improvements, and demonstrates how treating accelerators as first-class system resources can substantially reduce the performance gap imposed by O/S overheads.

References (43)