[Paper Review] Nixie: Efficient, Transparent Temporal Multiplexing for Consumer GPUs
Nixie provides efficient, transparent temporal multiplexing on consumer GPUs via a system service that coordinates memory allocation and kernel launches, improving latency for interactive tasks and reducing CPU pinned memory usage without app or driver changes.
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.
Motivation & Objective
- Motivate and address GPU memory oversubscription and thrashing on consumer GPUs with rapidly changing, single-user workloads.
- Develop a system that provides coordinated compute and memory virtualization without driver/app changes.
- Design an MLFQ-inspired scheduler that prioritizes latency-sensitive interactive workloads automatically.
- Eliminate reliance on UVM-style thrashing by managing memory at the CUDA allocation chunk level across a hierarchical memory system.
Proposed method
- Interpose on CUDA Runtime APIs via a lightweight Nixie Shim and coordinate with a central Nixie Daemon.
- Manage memory at the granularity of CUDA allocations (chunks) and split into 2 MB blocks for migration.
- Use a four-tier memory hierarchy (GPU memory, CPU pinned, CPU pageable, disk) with a global planner for cross-tier migration.
- Couple scheduling with memory placement to ensure an application's data resides in GPU memory when it runs.
- Implement an MLFQ-inspired scheduler that infers interactivity from kernel launch patterns and adjusts priorities dynamically.
- Prefetch data for the next application to reduce migration latency during context switches.
Experimental results
Research questions
- RQ1How can consumer-GPU workloads with nearly full GPU memory be efficiently multiplexed without thrashing?
- RQ2Can a system transparently manage compute and memory to avoid demand paging and fully utilize CPU-GPU bandwidth?
- RQ3Does an MLFQ-inspired scheduler automatically prioritize latency-sensitive interactive workloads without user annotations?
- RQ4How can memory be managed across a hierarchical CPU-GPU memory system to minimize CPU pinned-memory usage while maintaining throughput?
Key findings
- Nixie reduces context-switch overhead by 29.1-82.3% across configurations compared to baselines.
- Nixie improves interactive code-completion latency by 3.1-3.8×.
- Nixie saves up to 66.8% CPU pinned memory usage given the same latency requirement.
- Nixie saturates bi-directional host-GPU bandwidth and achieves around 2× throughput in host-device transfers versus UVM.
- Nixie delivers 1.3-1.6× speedups on diverse workloads including multi-application scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.