Frederic Weisbecker
150dfee95f
sched/isolation: Add basic isolcpus flags
...
Add flags to control NOHZ and domain isolation from "isolcpus=", in
order to centralize the isolation features to a common interface. Domain
isolation remains the default so not to break the existing isolcpus
boot paramater behaviour.
Further flags in the future may include 0hz (1hz tick offload) and timers,
workqueue, RCU, kthread, watchdog, likely all merged together in a
common flag ("async"?). In any case, this will have to be modifiable by
cpusets.
Signed-off-by: Frederic Weisbecker <[email protected] >
Acked-by: Thomas Gleixner <[email protected] >
Cc: Chris Metcalf <[email protected] >
Cc: Christoph Lameter <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Luiz Capitulino <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Paul E. McKenney <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Rik van Riel <[email protected] >
Cc: Wanpeng Li <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2017-10-27 09:55:31 +02:00
Frederic Weisbecker
edb9382175
sched/isolation: Move isolcpus= handling to the housekeeping code
...
We want to centralize the isolation features, to be done by the housekeeping
subsystem and scheduler domain isolation is a significant part of it.
No intended behaviour change, we just reuse the housekeeping cpumask
and core code.
Signed-off-by: Frederic Weisbecker <[email protected] >
Acked-by: Thomas Gleixner <[email protected] >
Cc: Chris Metcalf <[email protected] >
Cc: Christoph Lameter <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Luiz Capitulino <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Paul E. McKenney <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Rik van Riel <[email protected] >
Cc: Wanpeng Li <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2017-10-27 09:55:30 +02:00
Frederic Weisbecker
6f1982fedd
sched/isolation: Handle the nohz_full= parameter
...
We want to centralize the isolation management, done by the housekeeping
subsystem. Therefore we need to handle the nohz_full= parameter from
there.
Since nohz_full= so far has involved unbound timers, watchdog, RCU
and tilegx NAPI isolation, we keep that default behaviour.
nohz_full= will be deprecated in the future. We want to control
the isolation features from the isolcpus= parameter.
Signed-off-by: Frederic Weisbecker <[email protected] >
Acked-by: Thomas Gleixner <[email protected] >
Cc: Chris Metcalf <[email protected] >
Cc: Christoph Lameter <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Luiz Capitulino <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Paul E. McKenney <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Rik van Riel <[email protected] >
Cc: Wanpeng Li <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2017-10-27 09:55:30 +02:00
Frederic Weisbecker
de201559df
sched/isolation: Introduce housekeeping flags
...
Before we implement isolcpus under housekeeping, we need the isolation
features to be more finegrained. For example some people want NOHZ_FULL
without the full scheduler isolation, others want full scheduler
isolation without NOHZ_FULL.
So let's cut all these isolation features piecewise, at the risk of
overcutting it right now. We can still merge some flags later if they
always make sense together.
Signed-off-by: Frederic Weisbecker <[email protected] >
Acked-by: Thomas Gleixner <[email protected] >
Cc: Chris Metcalf <[email protected] >
Cc: Christoph Lameter <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Luiz Capitulino <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Paul E. McKenney <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Rik van Riel <[email protected] >
Cc: Wanpeng Li <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2017-10-27 09:55:29 +02:00
Frederic Weisbecker
e179f5a04b
sched/isolation: Use its own static key
...
Housekeeping code still depends on the nohz_full static key. Since we want
to decouple housekeeping from NOHZ, let's create a housekeeping specific
static key.
It's mostly relevant for calls to is_housekeeping_cpu() from the scheduler.
Signed-off-by: Frederic Weisbecker <[email protected] >
Acked-by: Thomas Gleixner <[email protected] >
Cc: Chris Metcalf <[email protected] >
Cc: Christoph Lameter <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Luiz Capitulino <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Paul E. McKenney <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Rik van Riel <[email protected] >
Cc: Wanpeng Li <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2017-10-27 09:55:27 +02:00
Frederic Weisbecker
7e56a1cf4b
sched/isolation: Make the housekeeping cpumask private
...
Nobody needs to access this detail. housekeeping_cpumask() already
takes care of it.
Signed-off-by: Frederic Weisbecker <[email protected] >
Acked-by: Thomas Gleixner <[email protected] >
Cc: Chris Metcalf <[email protected] >
Cc: Christoph Lameter <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Luiz Capitulino <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Paul E. McKenney <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Rik van Riel <[email protected] >
Cc: Wanpeng Li <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2017-10-27 09:55:26 +02:00
Frederic Weisbecker
7863406143
sched/isolation: Move housekeeping related code to its own file
...
The housekeeping code is currently tied to the NOHZ code. As we are
planning to make housekeeping independent from it, start with moving
the relevant code to its own file.
Signed-off-by: Frederic Weisbecker <[email protected] >
Acked-by: Thomas Gleixner <[email protected] >
Acked-by: Paul E. McKenney <[email protected] >
Cc: Chris Metcalf <[email protected] >
Cc: Christoph Lameter <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Luiz Capitulino <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Rik van Riel <[email protected] >
Cc: Wanpeng Li <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2017-10-27 09:55:24 +02:00