Skip to content

small fix for scale usage

Lei Wen lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v33 patches 0 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches0 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4sched: reduce calculation effort in fix_small_imbalancekernel/sched/fair.c+8 -110 replies
2/4sched: scale the busy and this queue's per-task load before comparekernel/sched/fair.c+38 -170 replies
3/4sched: scale cpu load for judgment of group imbalancekernel/sched/fair.c+12 -70 replies
4/4sched: adjust fix_small_imbalance moving task conditionkernel/sched/fair.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/4] small fix for scale usage

Here are three patches which correct scale usage in both fix_small_imbalance and update_sg_lb_stats.

And give out comment over when fix_small_imbalance would cause load change.

V2: fix scale usage for update_sg_lb_stats

V3: fix scale problem in comparing sds->busiest_load_per_task

    and sds->avg_load when there is not balanced group inside the domain

V4: env->imbalance should be applied with not scaled value, fix according to it.
Fix one ping-pong adjustment for special case.

Lei Wen (4):
sched: reduce calculation effort in fix_small_imbalance
sched: scale the busy and this queue's per-task load before compare
sched: scale cpu load for judgment of group imbalance
sched: adjust fix_small_imbalance moving task condition

 kernel/sched/fair.c |   85 ++++++++++++++++++++++++++++++++-------------------
 1 file changed, 54 insertions(+), 31 deletions(-)
Signature · 1 line
1.7.10.4