linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Daniel Bristot de Oliveira <daniel@bristot.me>
Cc: linux-rt-users@vger.kernel.org, tglx@linutronix.de,
	bigeasy@linutronix.de, anna-maria@linutronix.de,
	williams@redhat.com, mingo@kernel.org, rostedt@goodmis.org
Subject: Re: RCU simplification and RT needs
Date: Tue, 6 Jun 2017 05:58:14 -0700	[thread overview]
Message-ID: <20170606125814.GD3721@linux.vnet.ibm.com> (raw)
In-Reply-To: <b60afeb8-9967-3e83-8f3d-1f722ea78e8f@bristot.me>

On Tue, Jun 06, 2017 at 09:57:47AM +0200, Daniel Bristot de Oliveira wrote:
> 
> On 06/05/2017 10:35 PM, Paul E. McKenney wrote:
> > Hello!
> > 
> > At Linus's request, I am simplifying the Linux-kernel RCU implementation,
> > which includes removing code that implements features and options that
> > are no longer needed.  This is not a half-hearted effort.  In fact,
> > I expect that my submission to the next merge window will be a net
> > removal of more than 2500 lines of code.
> 
> Nice :-)
> 
> > But wait, there is more!  ;-)
> > 
> > Although the following two features are not being axed in v4.13, they
> > will be in v4.14 unless someone makes a convincing case for them:
> > 
> > 1.	The ability to build a CONFIG_RCU_NOCB_CPUS=y kernel without
> > 	also specifying CONFIG_NO_HZ_FULL.
> > 
> > 	Unless someone speaks for this configuration option,
> > 	CONFIG_RCU_NOCB_CPUS will be slaved off of CONFIG_NO_HZ_FULL,
> > 	and the rcu_nocbs= boot parameter will be dropped.  (RCU would
> > 	instead use the nohz_full= boot parameter to determine which
> > 	CPUs get their callbacks offloaded.)
> 
> In our product (RHEL-RT), we do not have rcu offload enabled on all CPUs
> by default, that's because there are some cases in which customers want
> to avoid context switches - they let rcuc/ as a low priority thread and
> let it do all the job, when there is nothing else to do. So, we let the
> user decide in which CPUs they want to offload RCU.
> 
> The side effect of enforcing NOHZ_FULL on those cases are two:
> 
> 1) NOHZ_FULL enables NOHZ, which causes an overhead in the
> exit-from-idle path, increasing the average latency;
> 
> 2) Not all RT users want to pay the syscall overheads involved on
> NOHZ_FULL. NOHZ_FULL is very nice for HPC users (user-space busy-loop
> tools) but not for RT users doing fine grained events. These users like
> to offload RCU callbacks on some CPUs, but do not want to pay the
> NOHZ_FULL price.
> 
> So, for event/response real-time users, NOHZ_FULL + NOHZ causes
> undesired overhead, while they want to have rcu_nocbs= enabled. That is
> why I believe that having both rcu_nocbs= and  nohz_full= separated is
> very useful.
> 
> > 2.	The ability to specify polling for callback-offloaded CPUs.  This
> > 	means that the rcu_nocb_poll= boot parameter will be dropped,
> > 	and the CPU doing call_rcu() would do explicit wakeups, when
> > 	needed, to get the corresponding rcuo kthread on the job.
> > 
> > 	I have no evidence that anyone has ever used this option, other
> > 	than me running the occasional rcutorture test.
> 
> We are using it in some cases. There are cases in which users do not
> want to see any interference in a CPU, let's call them heavy CPU
> isolation users. They do not want to see any job there other than their
> user-space busy-loop application. In those cases, they do not want to
> see the rcuc/ threads being awakened - not even to juts wake up another
> thread. Although these cases look more HPC than RT, those users want to
> use the RT kernel to avoid latency in other real-time threads running in
> the same system. I think that the best example of those users is NFV people.
> 
> > So, anyone need either of these?  If not, out they go!  ;-)
> As we deal with many different sort of real-time/HPC workload in the
> enterprise RT world... we end up facing many different user-cases, and
> those options are very useful for us.

Thanks to both you and Gerhard!

Looks like I should figure on keeping these, at least for the time being.

							Thanx, Paul


      reply	other threads:[~2017-06-06 12:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-05 20:35 RCU simplification and RT needs Paul E. McKenney
2017-06-06  6:15 ` AW: " eg Engleder Gerhard
2017-06-06  7:57 ` Daniel Bristot de Oliveira
2017-06-06 12:58   ` Paul E. McKenney [this message]

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=20170606125814.GD3721@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=anna-maria@linutronix.de \
    --cc=bigeasy@linutronix.de \
    --cc=daniel@bristot.me \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=williams@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).