Re: [PATCH RFC v4 11/16] drm, cgroup: Add per cgroup bw measure and control

2019-10-01 Thread Michal Koutný
Hi. On Thu, Aug 29, 2019 at 02:05:28AM -0400, Kenny Ho wrote: > diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c > @@ -1256,6 +1257,12 @@ int ttm_bo_validate(struct ttm_buffer_object *bo, > [...] > + move_delay /= 2000; /* check every half period in ms*/ > [...

[PATCH RFC v4 11/16] drm, cgroup: Add per cgroup bw measure and control

2019-08-28 Thread Kenny Ho
The bandwidth is measured by keeping track of the amount of bytes moved by ttm within a time period. We defined two type of bandwidth: burst and average. Average bandwidth is calculated by dividing the total amount of bytes moved within a cgroup by the lifetime of the cgroup. Burst bandwidth is s