sched/tune: add sysctl interface to define a boost value
authorPatrick Bellasi <patrick.bellasi@arm.com>
Mon, 22 Jun 2015 17:11:44 +0000 (18:11 +0100)
committerPunit Agrawal <punit.agrawal@arm.com>
Mon, 21 Mar 2016 14:57:33 +0000 (14:57 +0000)
commita6332cfa791c2b39c77ef778323963f513694602
tree63b2c15b0b9ae7d9b2d245d68e3ea04a1b1440a8
parent62d5c406ae5f97318744b9ba2fc1da13e8cb13ce
sched/tune: add sysctl interface to define a boost value

The current (CFS) scheduler implementation does not allow "to boost"
tasks performance by running them at a higher OPP compared to the
minimum required to meet their workload demands.

To support tasks performance boosting the scheduler should provide a
"knob" which allows to tune how much the system is going to be optimised
for energy efficiency vs performance.

This patch is the first of a series which provides a simple interface to
define a tuning knob. One system-wide "boost" tunable is exposed via:
  /proc/sys/kernel/sched_cfs_boost
which can be configured in the range [0..100], to define a percentage
where:
  - 0%   boost requires to operate in "standard" mode by scheduling
         tasks at the minimum capacities required by the workload demand
  - 100% boost requires to push at maximum the task performances,
         "regardless" of the incurred energy consumption

A boost value in between these two boundaries is used to bias the
power/performance trade-off, the higher the boost value the more the
scheduler is biased toward performance boosting instead of energy
efficiency.

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
include/linux/sched/sysctl.h
init/Kconfig
kernel/sched/Makefile
kernel/sched/tune.c [new file with mode: 0644]
kernel/sysctl.c