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

Koenig, Christian Christian.Koenig at amd.com
Fri Nov 23 18:13:32 UTC 2018


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.

Christian.


More information about the amd-gfx mailing list