[RFC PATCH] cgroup: Document interface files and rationale for DRM controller

Tejun Heo tj at kernel.org
Thu Nov 7 15:29:14 UTC 2019


Hello,

On Tue, Nov 05, 2019 at 04:08:22PM -0800, Brian Welty wrote:
> I was more interested in hearing your thoughts on whether you like
> the approach to have a set of controls that are consistent with 
> some subset of the existing CPU/MEM ones.  Any feedback on this?
> Didn't really mean to suggest that all of these would be included
> from the start.

I don't see why they should be synchronized.  If it ends up being
about the same anyway, there's no reason to not sync them but that
doesn't seem very likely to me and trying to sync sounds like adding
an unnecessary constraint.  One side of the ballot is possibly missing
on aesthetics a bit while the other side is constraining interface
design even before understanding the design space, so...

> Would you agree that this reduced set is a reasonable starting point?
> +  sched.weight
> +  memory.current
> +  memory.max
> 
> Thoughts on whether this should be very GPU-specific cgroups controller
> or should be more forward thinking to be useful for other 'accelerator'
> type devices as well?

My preference is starting small and focused.  GPU by itself is already
a big enough problem and the progress upto this point evidently
indicates even that alone is poorly mapped out.  Please start with the
smallest and most common (tied to usage, not hardware) interface
that's viable.

Thanks.

-- 
tejun


More information about the dri-devel mailing list