I think about GPU scheduling at several levels: increasing throughput when workloads leave a GPU underused, prioritizing VR rendering, and deciding how strictly time-critical work should preempt background work.
With workloads that don’t fully load the GPU, I said running multiple processes on each GPU can often produce a substantial throughput increase.
I said you need to manually enable MPS to get concurrency.
The VR system supports three GPU preemption levels, but I said we were only using two.
In the VR system, high priority was for the compositor and medium priority was for everything else.
I said it would be a good idea to force all 2D panel applications to the lowest priority so the shell rendering would preempt them.
I said the shell environment not holding even 90 fps consistently still pains me today.
I attributed a good chunk of the shell performance issue to a multi-process architecture split that I hated.
I said both processes in that architecture should at least be forced to SCHED_FIFO.
I also identified panel app GPU use as a factor in shell performance.
I like SCHED_FIFO on Linux because if a higher priority can run, it preempts anything lower right away and continues until it yields or something even higher takes over.
I described CUDA stream priorities as more like traditional OS priority hints: better than nothing, but not enough to get really aggressive with mixing time-critical tasks and background work.
I asked whether any of the big AI labs have written publicly about how they schedule usage of their GPU clusters between research, frontier training, and production.
I think the scheduling needs of research workloads on modest clusters are underserved: “a lot of research work is done with single GPU jobs on modest clusters,” and “the scheduling leaves much to be desired.”
I wish there were a clean way to preempt GPU tasks so long-running work could pause transparently and higher-priority tasks could get the minimum time-to-results.
I see manual checkpointing and cooperative multitasking as possible alternatives, but they complicate codebases and are fertile ground for bugs.
I see GPU page tables, Nvidia UVM demand paging to host memory, and MPS as pieces that might enable preemption; MPS could act as a CUDA shim to force allocations through a different memory allocator.
Because GPU memory page thrashing would be catastrophic, my proposed approach pauses the low-priority process’s host task, lets a higher-priority process force out only the pages it needs—or none if memory pressure is insufficient—and then resumes the low-priority task so its data can page back in.
I envision task switching at the level of tens of seconds, not milliseconds.
I think the approach would still be quite useful even if it did not handle absolutely all memory, including kernel allocations, and had some overhead.
I noted that frontier data centers have hundreds of thousands of GPUs, while much research work runs as single GPU jobs on modest clusters.
I closed with a sarcastic jab at buying more hardware instead of improving scheduling: “Of course, Nvidia would prefer you to Just Buy More GPUs!”
This is a proposed direction, not a report of an implementation or measured performance. Its open questions include whether MPS can serve as the suggested CUDA shim, how much memory it could cover, what overhead it would add, and how paging would behave under different levels of memory pressure. The proposal connects GPU scheduling with gpu performance characteristics and memory and data movement.
Related: gpu architecture and scaling, gpu performance characteristics, spatial window design