All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V4 0/11] sched: remove cpu_loads
@ 2014-02-25  1:50 Alex Shi
  2014-02-25  1:50 ` [PATCH 01/11] sched: shortcut to remove load_idx Alex Shi
                   ` (10 more replies)
  0 siblings, 11 replies; 18+ messages in thread
From: Alex Shi @ 2014-02-25  1:50 UTC (permalink / raw)
  To: mingo, peterz, morten.rasmussen
  Cc: vincent.guittot, daniel.lezcano, fweisbec, linux, tony.luck,
	fenghua.yu, james.hogan, alex.shi, jason.low2, viresh.kumar,
	hanjun.guo, linux-kernel, tglx, akpm, arjan, pjt, fengguang.wu,
	linaro-kernel, wangyun, mgorman

The cpu_load decays on time according past cpu load of rq. The sched_avg 
also decays tasks' load on time. Now we has 2 kind decay for cpu_load. 
That is a kind of redundancy. And increase the system load by decay 
calculation. This patch try to remove the cpu_load decay.

There are 5 load_idx used for cpu_load in sched_domain. busy_idx and 
idle_idx are not zero usually, but newidle_idx, wake_idx and forkexec_idx 
are all zero on every arch. A shortcut to remove cpu_Load decay in the first
patch. just one line patch for this change. Then I try to clean up code 
followed by this change.


V4,
1, rebase on latest tip/master
2, replace target_load by biased_load as Morten's suggestion

V3,
1, correct the wake_affine bias. Thanks for Morten's reminder!
2, replace source_load by weighted_cpuload for better function name meaning.

V2,
1, This version do some tuning on load bias of target load.
2, Got further to remove the cpu_load in rq.
3, Revert the patch 'Limit sd->*_idx range on sysctl' since no needs

Any testing/comments are appreciated.

This patch rebase on latest tip/master.
The git tree for this patchset at:
 git@github.com:alexshi/power-scheduling.git noload

Thanks
Alex

 [PATCH 01/11] sched: shortcut to remove load_idx
 [PATCH 02/11] sched: remove rq->cpu_load[load_idx] array
 [PATCH 03/11] sched: clean up cpu_load update
 [PATCH 04/11] sched: unify imbalance bias for target group
 [PATCH 05/11] sched: rewrite update_cpu_load_nohz
 [PATCH 06/11] sched: clean up source_load/target_load
 [PATCH 07/11] sched: replace source_load by weighted_cpuload
 [PATCH 08/11] sched: replace target_load by biased_load
 [PATCH 09/11] sched: remove rq->cpu_load and rq->nr_load_updates
 [PATCH 10/11] sched: rename update_*_cpu_load
 [PATCH 11/11] sched: clean up task_hot function

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-03-12 10:36 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-25  1:50 [PATCH V4 0/11] sched: remove cpu_loads Alex Shi
2014-02-25  1:50 ` [PATCH 01/11] sched: shortcut to remove load_idx Alex Shi
2014-02-25  1:50 ` [PATCH 02/11] sched: remove rq->cpu_load[load_idx] array Alex Shi
2014-02-25 16:22   ` Srikar Dronamraju
2014-02-26  1:54     ` Alex Shi
2014-02-25  1:50 ` [PATCH 03/11] sched: clean up cpu_load update Alex Shi
2014-02-25  1:50 ` [PATCH 04/11] sched: unify imbalance bias for target group Alex Shi
2014-02-25 14:14   ` Peter Zijlstra
2014-02-26 15:16     ` Alex Shi
2014-03-02  1:44       ` Alex Shi
2014-03-12 10:36       ` Alex Shi
2014-02-25  1:50 ` [PATCH 05/11] sched: rewrite update_cpu_load_nohz Alex Shi
2014-02-25  1:50 ` [PATCH 06/11] sched: clean up source_load/target_load Alex Shi
2014-02-25  1:50 ` [PATCH 07/11] sched: replace source_load by weighted_cpuload Alex Shi
2014-02-25  1:50 ` [PATCH 08/11] sched: replace target_load by biased_load Alex Shi
2014-02-25  1:50 ` [PATCH 09/11] sched: remove rq->cpu_load and rq->nr_load_updates Alex Shi
2014-02-25  1:50 ` [PATCH 10/11] sched: rename update_*_cpu_load Alex Shi
2014-02-25  1:50 ` [PATCH 11/11] sched: clean up task_hot function Alex Shi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.