[Question] load balance move tasks not suitable ?

From: weiqi (C)
Date: Mon Jul 30 2018 - 08:09:08 EST


Hi Peter,

After Commits 5d6523ebd(sched: Fix load-balance wreckage)ï
The jugement whether imbalance reached changed from twice to one-half.

from

(1) if((load * 2)> rem_load_move)
ÂÂÂ ÂÂÂ goto next;

to

(2) if((load / 2)> env-> load_move)
ÂÂÂ ÂÂÂ goto next;

I'm confused about this change.

"load*2" may be more appropriate, because if a task whose load more than env->imbalance is moved from high load cpu to low load cpu,

will make more imbalance.

Regards,