Messages in this thread | | | From | Yuyang Du <> | Subject | [PATCH v3 0/6] sched/fair: Clean up sched metric definitions | Date | Tue, 5 Apr 2016 12:12:25 +0800 |
| |
Hi Peter,
Would you please give it a look?
This series cleans up the sched metrics, changes include: (1) Define SCHED_FIXEDPOINT_SHIFT for all fixed point arithmetic scaling. (2) Get rid of confusing scaling factors: SCHED_LOAD_SHIFT and SCHED_LOAD_SCALE, and thus only leave NICE_0_LOAD (for load) and SCHED_CAPACITY_SCALE (for util). (3) Consistently use SCHED_CAPACITY_SCALE for all util related. (4) Add detailed introduction to the sched metrics. (5) Get rid of unnecessary scaling up and down for load. (6) Rename the mappings between priority (user) and load (kernel). (7) Move inactive code.
The previous version is at: http://thread.gmane.org/gmane.linux.kernel/2187272
v3 changes: (1) Rebase to current tip (2) Changelog fix, thanks to Ben.
Thanks, Yuyang
---
Yuyang Du (6): sched/fair: Generalize the load/util averages resolution definition sched/fair: Remove SCHED_LOAD_SHIFT and SCHED_LOAD_SCALE sched/fair: Add introduction to the sched load avg metrics sched/fair: Remove scale_load_down() for load_avg sched/fair: Rename scale_load() and scale_load_down() sched/fair: Move (inactive) option from code to config
include/linux/sched.h | 81 +++++++++++++++++++++++++++++++++++++++++++-------- init/Kconfig | 16 ++++++++++ kernel/sched/core.c | 8 ++--- kernel/sched/fair.c | 33 ++++++++++----------- kernel/sched/sched.h | 52 +++++++++++++++------------------ 5 files changed, 127 insertions(+), 63 deletions(-)
-- 2.1.4
| |