[Intel-gfx] [PATCH RFC 4/5] drm/amdgpu: Add accounting of command submission via DRM cgroup

Ho, Kenny Kenny.Ho at amd.com
Fri Nov 23 19:09:38 UTC 2018


On Fri, Nov 23, 2018 at 1:13 PM Koenig, Christian <Christian.Koenig at amd.com> wrote:
> Am 23.11.18 um 18:36 schrieb Eric Anholt:
> > Christian König <ckoenig.leichtzumerken at gmail.com> writes:
> >> Am 20.11.18 um 21:57 schrieb Eric Anholt:
> >>> Kenny Ho <Kenny.Ho at amd.com> writes:
> >>>> Account for the number of command submitted to amdgpu by type on a per
> >>>> cgroup basis, for the purpose of profiling/monitoring applications.
> >>> For profiling other drivers, I've used perf tracepoints, which let you
> >>> get useful timelines of multiple events in the driver.  Have you made
> >>> use of this stat for productive profiling?
> >> Yes, but this is not related to profiling at all.
> >>
> >> What we want to do is to limit the resource usage of processes.
> > That sounds great, and something I'd be interested in for vc4.  However,
> > as far as I saw explained here, this patch doesn't let you limit
> > resource usage of a process and is only useful for
> > "profiling/monitoring" so I'm wondering how it is useful for that
> > purpose.
>
> Ok, good to know. I haven't looked at this in deep, but if this is just
> for accounting that would certainly be missing the goal.
The end goal is to have limit in place.  The current patch is mostly to illustrate the structure of the controller and get some early feedback.  I will have more soon.

Regards,
Kenny


More information about the Intel-gfx mailing list