Intel & AMD Send Out New Patches For Linux Cgroup Support For GPUs
Written by Michael Larabel in Linux Kernel on 2 May 2019 at 12:09 AM EDT. 7 Comments
LINUX KERNEL --
Separate patch series sent out on Wednesday by Intel and AMD Linux developers are continuing work on prepping cgroup infrastructure support around graphics processors.

For a long time now there have been patches floating around for prepping Cgroup infrastructure around DRM drivers / graphics processors. This work would make it possible to monitor and limit GPU resources just as you can use cgroups for such on CPUs. This work could also be used for restricting video memory to a set of processes, among other possible restrictions.

AMD has similarly been interested in this for data centers for limiting/controlling GPU resources without resorting to GPU virtualization. By using DRM cgroup controllers they could provide fine-grained resource management that up to now is only really suitable with SR-IOV GPU virtualization.

It's looking like this infrastructure work could be getting closer to finally reaching the mainline Linux kernel. Intel sent out the latest cgroup support patches for GPU devices though their patches only implement the support for the i915 DRM driver and is limited to handling device memory limits at this stage. These newest Intel patches use a slightly different design than their code from 2018. Obviously Intel will become much more interested in this functionality as their Xe Graphics discrete hardware nears.

AMD meanwhile sent out new patches for wiring in device cgroups up to their AMDKFD driver for the GPU compute stack.

This work is too late to see reviewed and agreed upon for the upcoming Linux 5.2 cycle, but we can hold out hope for seeing the work land for Linux 5.3.
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Related Linux Kernel News
Popular News This Week