Skip to main content
QUICK REVIEW

[Paper Review] Augmenting Operating Systems With the GPU

Weibin Sun, Robert Ricci|arXiv (Cornell University)|May 15, 2013
Parallel Computing and Optimization TechniquesComputer Science15 references13 citations
TL;DR

This paper proposes KGPU, a framework that enables the Linux kernel to offload compute-intensive tasks—such as AES encryption and network packet processing—to the GPU as a co-processor. By using pinned memory and a message-passing pipeline with user-space helpers, KGPU reduces GPU call latency and achieves up to 6x speedup for AES-ECB encryption on large data blocks, demonstrating the feasibility of GPU-augmented operating systems.

ABSTRACT

The most popular heterogeneous many-core platform, the CPU+GPU combination, has received relatively little attention in operating systems research. This platform is already widely deployed: GPUs can be found, in some form, in most desktop and laptop PCs. Used for more than just graphics processing, modern GPUs have proved themselves versatile enough to be adapted to other applications as well. Though GPUs have strengths that can be exploited in systems software, this remains a largely untapped resource. We argue that augmenting the OS kernel with GPU computing power opens the door to a number of new opportunities. GPUs can be used to speed up some kernel functions, make other scale better, and make it feasible to bring some computation-heavy functionality into the kernel. We present our framework for using the GPU as a co-processor from an OS kernel, and demonstrate a prototype in Linux.

Motivation & Objective

  • To explore the feasibility of using GPUs as co-processors within the OS kernel to accelerate performance-critical system functions.
  • To address the latency overhead of GPU offloading by designing a low-latency communication framework between kernel and GPU.
  • To demonstrate that GPU acceleration can be effectively integrated into existing OS subsystems like crypto and networking.
  • To enable new system functionality that is too slow on CPUs by leveraging GPU's massive parallelism.
  • To lay the foundation for future heterogeneous OS designs that treat GPUs as specialized accelerators, not general-purpose CPUs.

Proposed method

  • Designing KGPU, a kernel framework that allows direct GPU kernel calls via a user-space helper and message-passing interface.
  • Using CUDA-managed pinned memory to minimize data transfer overhead between CPU and GPU.
  • Implementing a five-stage pipeline for GPU service calls: preparation, DMA to GPU, GPU execution, DMA from GPU, and result return.
  • Employing a shared response queue and completion messages to enable asynchronous GPU operation and overlap computation with data transfers.
  • Integrating GPU-accelerated AES-ECB encryption into the Linux crypto subsystem as a proof-of-concept service.
  • Using microbenchmarks to evaluate performance across different data sizes and compare GPU and CPU implementations.

Experimental results

Research questions

  • RQ1Can GPU acceleration be effectively integrated into the OS kernel to improve performance of system-critical functions?
  • RQ2What architectural patterns minimize latency when offloading kernel tasks to the GPU?
  • RQ3How does GPU offloading affect throughput and latency in cryptographic and networking workloads?
  • RQ4What are the performance trade-offs between CPU and GPU execution for small versus large data sizes?
  • RQ5Can GPU-accelerated services be securely and efficiently composed within the kernel's existing subsystems?

Key findings

  • The KGPU framework successfully enables GPU offloading from the Linux kernel using a user-space helper and message-passing, reducing latency through pipelining and pinned memory.
  • GPU-accelerated AES-ECB encryption achieves up to 6x speedup over the optimized CPU version when encrypting data blocks of 8KB or larger.
  • The performance crossover point occurs at 8KB, meaning that per-page encryption in encrypted filesystems could benefit significantly from GPU acceleration.
  • The framework supports concurrent operations across five pipeline stages, enabling overlapping of data transfers and GPU computation.
  • Latency overhead from GPU data transfers limits gains for small tasks, suggesting dynamic CPU/GPU dispatching based on workload size is beneficial.
  • Future hardware trends such as APUs with shared memory may drastically reduce copy overhead and lower the minimum task size that benefits from GPU offloading.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.