Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1426928
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/4] sched/fair: Introduce idle enter/exit balance callbacks |
| Date | 2016-06-20 20:50 +0200 |
| Message-ID | <rMaoV-2aV-15@gated-at.bofh.it> (permalink) |
| References | <rM6uZ-8aw-7@gated-at.bofh.it> <rM6v0-8aw-69@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Jun 20, 2016 at 02:15:12PM +0200, Jiri Olsa wrote:
> Introducing idle enter/exit balance callbacks to keep
> balance.idle_cpus_mask cpumask of current idle cpus
> in system.
>
> It's used only when REBALANCE_AFFINITY feature is
> switched on. The code functionality of this feature
> is introduced in following patch.
>
> Signed-off-by: Jiri Olsa <jolsa@kernel.org>
> ---
> kernel/sched/fair.c | 32 ++++++++++++++++++++++++++++++++
> kernel/sched/idle.c | 2 ++
> kernel/sched/sched.h | 3 +++
> 3 files changed, 37 insertions(+)
>
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index f19c9435c64d..78c4127f2f3a 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -7802,6 +7802,37 @@ static inline int on_null_domain(struct rq *rq)
> return unlikely(!rcu_dereference_sched(rq->sd));
> }
>
> +static struct {
> + cpumask_var_t idle_cpus_mask;
> + atomic_t nr_cpus;
> +} balance ____cacheline_aligned;
How is this different from the nohz idle cpu mask?
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC 0/4] sched/fair: Rebalance tasks based on affinity Jiri Olsa <jolsa@kernel.org> - 2016-06-20 14:30 +0200
[PATCH 4/4] sched/fair: Add schedstat debug values for REBALANCE_AFFINITY Jiri Olsa <jolsa@kernel.org> - 2016-06-20 14:30 +0200
[PATCH 2/4] sched/fair: Introduce idle enter/exit balance callbacks Jiri Olsa <jolsa@kernel.org> - 2016-06-20 14:30 +0200
Re: [PATCH 2/4] sched/fair: Introduce idle enter/exit balance callbacks Jiri Olsa <jolsa@redhat.com> - 2016-06-20 18:40 +0200
Re: [PATCH 2/4] sched/fair: Introduce idle enter/exit balance callbacks Peter Zijlstra <peterz@infradead.org> - 2016-06-21 11:10 +0200
Re: [PATCH 2/4] sched/fair: Introduce idle enter/exit balance callbacks Peter Zijlstra <peterz@infradead.org> - 2016-06-20 20:50 +0200
csiph-web