From: Frederic Weisbecker <fweisbec@gmail.com>
To: Pranith Kumar <bobby.prani@gmail.com>
Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>,
LKML <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@kernel.org>,
Lai Jiangshan <laijs@cn.fujitsu.com>,
Dipankar Sarma <dipankar@in.ibm.com>,
Andrew Morton <akpm@linux-foundation.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Josh Triplett <josh@joshtriplett.org>,
tglx@linutronix.de, Peter Zijlstra <peterz@infradead.org>,
Steven Rostedt <rostedt@goodmis.org>,
David Howells <dhowells@redhat.com>,
Eric Dumazet <edumazet@google.com>,
dvhart@linux.intel.com, Oleg Nesterov <oleg@redhat.com>,
Sasha Levin <sasha.levin@oracle.com>
Subject: Re: [PATCH RFC tip/core/rcu] Fix attempt to avoid offloading callbacks unless requested
Date: Mon, 28 Jul 2014 23:03:06 +0200 [thread overview]
Message-ID: <20140728210303.GB26017@localhost.localdomain> (raw)
In-Reply-To: <CAJhHMCCkS9_bO3PHc+cWSMw-eEZfnYVKdXyk6E5P5p7RbU7oLQ@mail.gmail.com>
On Sat, Jul 26, 2014 at 09:51:52PM -0400, Pranith Kumar wrote:
> On Fri, Jul 25, 2014 at 10:30 PM, Frederic Weisbecker
> <fweisbec@gmail.com> wrote:
>
> >> I understand that if CONFIG_NO_HZ_FULL_ALL is set then CONFIG_NOCB_CPU_ALL
> >> will also be set and there is no need for this cpumask_or().
> >>
> >> Is there any reason for the coupling between CONFIG_NO_HZ_FULL_ALL
> >> and CONFIG_NOCB_CPU_ALL?
> >
> > Yeah, for any nohz full CPU, we need the corresponding CPU to be rcu_nocb.
> > So if all CPUs are full dynticks, all CPUs must be rcunocb.
> >
> > That said with this patch, the dependency is perhaps not needed anymore.
> >
> >>
> >> I ask because a user can override CONFIG_NO_HZ_FULL_ALL=y at boot time
> >> using the nohz_full= boot time parameter.
> >
> > No, the content of nohz_full= is ignored with CONFIG_NO_HZ_FULL_ALL=y.
> >
>
> Please correct me if I am wrong but that does not seem to be the case.
> If a boot parameter is passed, we are setting up tick_nohz_full_mask
> from tick_nohz_full_setup() and marking tick_nohz_full_running as true.
> Later on we check this flag and skip the CONFIG_NO_HZ_FULL_ALL
> initialization.
You're right, I missed the tick_nohz_full_running check :)
So if nohz_full is passed, we ignore CONFIG_NO_HZ_FULL_ALL. That looks like
the right behaviour though.
Paul what do you think? If we keep that behaviour, Maybe you could blindly do
rcu_nocb_mask |= tick_nohz_full and remove the CONFIG_NO_HZ_FULL_ALL dependency
on RCU_NOCB_ALL?
next prev parent reply other threads:[~2014-07-28 21:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-25 23:36 [PATCH RFC tip/core/rcu] Fix attempt to avoid offloading callbacks unless requested Paul E. McKenney
2014-07-26 0:10 ` Pranith Kumar
2014-07-26 0:51 ` Paul E. McKenney
2014-07-26 2:30 ` Frederic Weisbecker
2014-07-27 1:51 ` Pranith Kumar
2014-07-28 21:03 ` Frederic Weisbecker [this message]
2014-07-28 23:17 ` Paul E. McKenney
2014-07-28 23:35 ` Pranith Kumar
2014-07-29 1:55 ` Paul E. McKenney
2014-07-27 1:34 ` Pranith Kumar
2014-07-27 18:40 ` Paul E. McKenney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140728210303.GB26017@localhost.localdomain \
--to=fweisbec@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=bobby.prani@gmail.com \
--cc=dhowells@redhat.com \
--cc=dipankar@in.ibm.com \
--cc=dvhart@linux.intel.com \
--cc=edumazet@google.com \
--cc=josh@joshtriplett.org \
--cc=laijs@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mingo@kernel.org \
--cc=oleg@redhat.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=sasha.levin@oracle.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.