-
- Downloads
sched: Window-based load stat improvements
Some tasks can have a sporadic load pattern such that they can suddenly start running for longer intervals of time after running for shorter durations. To recognize such sharp increase in tasks' demands, max between the average of 5 window load samples and the most recent sample is chosen as the task demand. Make the window size (sched_ravg_window) configurable at boot up time. To prevent users from setting inappropriate values for window size, min and max limits are defined. As 'ravg' struct tracks load for both real-time and non real-time tasks it is moved out of sched_entity struct. In order to prevent changing function signatures for move_tasks() and move_one_task() per-cpu variables are defined to track the total load moved. In case multiple tasks are selected to migrate in one load balance operation, loads > 100 could be sent through migration notifiers. Prevent this scenario by setting mnd.load to 100 in such cases. Define wrapper functions to compute cpu demands for tasks and to change rq->cumulative_runnable_avg. Change-Id: I9abfbf3b5fe23ae615a6acd3db9580cfdeb515b4 Signed-off-by:Srivatsa Vaddagiri <vatsa@codeaurora.org> Signed-off-by:
Rohit Gupta <rohgup@codeaurora.org>
Showing
- include/linux/sched.h 1 addition, 5 deletionsinclude/linux/sched.h
- include/linux/sched/sysctl.h 0 additions, 1 deletioninclude/linux/sched/sysctl.h
- kernel/sched/core.c 59 additions, 57 deletionskernel/sched/core.c
- kernel/sched/fair.c 55 additions, 18 deletionskernel/sched/fair.c
- kernel/sched/sched.h 17 additions, 1 deletionkernel/sched/sched.h
- kernel/sysctl.c 0 additions, 7 deletionskernel/sysctl.c
Loading
Please register or sign in to comment