[RFC] dmisc cgroups controller

Thomas Hellström <[email protected]>
Newsgroups org.kernel.vger.cgroups,org.freedesktop.lists.dri-devel,org.freedesktop.lists.intel-xe
Organization Intel Sweden AB, Registration Number: 556189-6027
Message-ID <[email protected]>
Hi!

We (drm/xe GPU driver) have a use-case where we have a very limited
number of a particular device resource (CLOS slots) that we potentially
want to expose to unprivlieged processes for reservation / allocation.
We want to be able to restrict per cgroups the number of CLOS slots
that are available for reservation / allocation.

This is not a good fit for the misc controller since these resource
types may be added and removed similar to dmem regions. Neither is it a
good fit for the dmem controller.

Would a dmisc controller be suitable here? It would be similar to the
misc countroller but with dynamic addition and removal of resource
types similar to the dmem controller.

Any input greatly appreciated.

Thanks,
Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.