Re: [PATCH RFC] sched/fair: simplfy the work when reweighting entity

2020-08-06 Thread Dietmar Eggemann
On 06/08/2020 04:42, benbjiang(蒋彪) wrote: > > >> On Aug 6, 2020, at 12:21 AM, Dietmar Eggemann >> wrote: >> >> On 04/08/2020 09:12, Jiang Biao wrote: >>> If a se is on_rq when reweighting entity, all we need should be >>> updating the load of cfs_rq, other dequeue/enqueue works could be >>> red

Re: [PATCH RFC] sched/fair: simplfy the work when reweighting entity

2020-08-05 Thread 蒋彪
> On Aug 6, 2020, at 12:21 AM, Dietmar Eggemann > wrote: > > On 04/08/2020 09:12, Jiang Biao wrote: >> If a se is on_rq when reweighting entity, all we need should be >> updating the load of cfs_rq, other dequeue/enqueue works could be >> redundant, such as, >> * account_numa_dequeue/account_n

Re: [PATCH RFC] sched/fair: simplfy the work when reweighting entity

2020-08-05 Thread Dietmar Eggemann
On 04/08/2020 09:12, Jiang Biao wrote: > If a se is on_rq when reweighting entity, all we need should be > updating the load of cfs_rq, other dequeue/enqueue works could be > redundant, such as, > * account_numa_dequeue/account_numa_enqueue > * list_del/list_add from/into cfs_tasks > * nr_running--

[PATCH RFC] sched/fair: simplfy the work when reweighting entity

2020-08-04 Thread Jiang Biao
If a se is on_rq when reweighting entity, all we need should be updating the load of cfs_rq, other dequeue/enqueue works could be redundant, such as, * account_numa_dequeue/account_numa_enqueue * list_del/list_add from/into cfs_tasks * nr_running--/nr_running++ Just simplfy the work. Could be help