Skip to main content
QUICK REVIEW

[论文解读] Nixie: Efficient, Transparent Temporal Multiplexing for Consumer GPUs

Yechen Xu, Yifei wang|arXiv (Cornell University)|Jan 16, 2026
Parallel Computing and Optimization TechniquesComputer Science被引用 0
一句话总结

Nixie 通过一个系统服务来协调内存分配和内核启动,在消费级 GPU 上实现高效、透明的时间多路复用,提升交互任务的延迟并减少应用程序或驱动程序改变所引起的 CPU 引脚内存使用。

ABSTRACT

Consumer machines are increasingly running large ML workloads such as large language models (LLMs), text-to-image generation, and interactive image editing. Unlike datacenter GPUs, consumer GPUs serve single-user, rapidly changing workloads, and each model's working set often nearly fills the GPU memory. As a result, existing sharing mechanisms (e.g., NVIDIA Unified Virtual Memory) perform poorly due to memory thrashing and excessive use of CPU pinned memory when multiple applications are active. We design and implement Nixie, a system that enables efficient and transparent temporal multiplexing on consumer GPUs without requiring any application or driver changes. Nixie is a system service that coordinates GPU memory allocation and kernel launch behavior to efficiently utilize the CPU-GPU bi-directional bandwidth and CPU pinned memory. A lightweight scheduler in Nixie further improves responsiveness by automatically prioritizing latency-sensitive interactive jobs using MLFQ-inspired techniques. Our evaluations show that Nixie improves latency of real interactive code-completion tasks by up to $3.8 imes$ and saves up to 66.8% CPU pinned memory usage given the same latency requirement.

研究动机与目标

  • 通过快速变化的单用户工作负载,动机与解决消费级 GPU 的内存过载与抖动问题。
  • 开发一个提供协调的计算与内存虚拟化的系统,无需驱动程序/应用程序改动。
  • 设计一个受多级反馈队列(MLFQ)启发的调度器,自动优先考虑延迟敏感的交互工作负载。
  • 通过在分层内存系统中对 CUDA 分配块级别管理内存,消除对 UVM 风格抖动的依赖。

提出的方法

  • 通过一个轻量级的 Nixie Shim 拦截 CUDA 运行时 API,并与中心 Nixie 守护进程协同工作。
  • 在 CUDA 分配(块)粒度管理内存,并分割成 2 MB 块以便迁移。
  • 采用四层内存层次结构(GPU 内存、CPU 引脚内存、CPU 可分页内存、磁盘),并配备用于跨层迁移的全局规划器。
  • 将调度与内存放置绑定,确保应用数据在运行时驻留在 GPU 内存。
  • 实现受 MLFSQ 启发的调度器,通过内核启动模式推断交互性并动态调整优先级。
  • 在切换上下文时对下一个应用提前获取数据,以降低迁移延迟。

实验结果

研究问题

  • RQ1在几乎满载 GPU 内存的消费级 GPU 工作负载下,如何高效地进行多路复用而不产生抖动?
  • RQ2系统能否透明地管理计算和内存,以避免按需分页并充分利用 CPU-GPU 带宽?
  • RQ3是否在没有用户注释的情况下,受 MLFSQ 启发的调度器能自动优先考虑延迟敏感的交互工作负载?
  • RQ4在分层 CPU-GPU 内存系统中如何管理内存,以在维持吞吐量的同时最小化 CPU 引脚内存使用?

主要发现

  • 与基线相比,Nixie 在不同配置下将上下文切换开销降低了 29.1%~82.3%。
  • Nixie 将交互式代码补全延迟提升 3.1×~3.8×。
  • 在相同延迟需求下,Nixie 可将 CPU 引脚内存使用最多减少 66.8%。
  • Nixie 能实现双向主机–GPU 带宽的饱和,并在主机–设备传输方面比 UVM 提高约 2× 的吞吐量。
  • Nixie 在多应用场景等多样化工作负载上实现了 1.3×~1.6× 的加速。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。