Re: [PATCH v3] sched/fair: don't assign runtime for throttled cfs_rq

2019-08-28 Thread Peter Zijlstra
On Wed, Aug 28, 2019 at 11:16:52AM +0100, Valentin Schneider wrote: > On 26/08/2019 13:16, Liangyan wrote: > > do_sched_cfs_period_timer() will refill cfs_b runtime and call > > distribute_cfs_runtime to unthrottle cfs_rq, sometimes cfs_b->runtime > > will allocate all quota to one cfs_rq incorrect

Re: [PATCH v3] sched/fair: don't assign runtime for throttled cfs_rq

2019-08-28 Thread Valentin Schneider
On 26/08/2019 13:16, Liangyan wrote: > do_sched_cfs_period_timer() will refill cfs_b runtime and call > distribute_cfs_runtime to unthrottle cfs_rq, sometimes cfs_b->runtime > will allocate all quota to one cfs_rq incorrectly, then other cfs_rqs > attached to this cfs_b can't get runtime and will b

[PATCH v3] sched/fair: don't assign runtime for throttled cfs_rq

2019-08-26 Thread Liangyan
do_sched_cfs_period_timer() will refill cfs_b runtime and call distribute_cfs_runtime to unthrottle cfs_rq, sometimes cfs_b->runtime will allocate all quota to one cfs_rq incorrectly, then other cfs_rqs attached to this cfs_b can't get runtime and will be throttled. We find that one throttled cfs_