News: 0001517319

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Device Memory "DMEM" Cgroup Support Ready For Linux 6.14 To Allow Limiting GPU vRAM

([Hardware] 5 Hours Ago DMEM cgroup)


A pull request submitted this week to DRM-Next ahead of the upcoming [1]Linux 6.14 cycle is introducing the notion of device memory "DMEM" to cgroup with the main intended use being to restrict device memory usage based on the cgroup hierarchy such as for graphics cards with their dedicated vRAM.

Maarten Lankhorst of Intel has been driving the DMEM cgroup effort and for now only the Direct Rendering Manager (DRM) subsystem is the user of this code though in the future this device memory cgroup handling could be extended to other device types with dedicated memory attached.

For Linux 6.14, the DMEM cgroup support is wired up into the Intel Xe kernel graphics driver for allowing the video memory to be limited based on the cgroup hierarchy for Intel graphics cards. This DMEM cgroup code for vRAM memory accounting can also be "trivially" used by other kernel graphics drivers relying on TTM for memory management.

This DMEM cgroup support for controlling video memory limits was submitted via [2]this pull request on Monday ahead of the Linux 6.14 merge window opening later this month.



[1] https://www.phoronix.com/search/Linux+6.14

[2] https://lore.kernel.org/dri-devel/20250106-shaggy-solid-dogfish-e88ebc@houat/T/#u



phoronix

<evilkalla> heh, I never took a coding class
<evilkalla> or a graphics class
<evilkalla> or a software design class
<vegan> and it shows :P