All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Zixin Wang <w1355457260@gmail.com>
Cc: frederic@kernel.org, "Ahmed S. Darwish" <darwi@linutronix.de>,
	John Ogness <john.ogness@linutronix.de>,
	linux-doc@vger.kernel.org, linux-rt-devel@lists.linux.dev,
	clrkwllms@kernel.org, rostedt@goodmis.org, corbet@lwn.net,
	wagi@monom.org, atomlin@atomlin.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6] Documentation: real-time: Add runtime tuning guide
Date: Wed, 25 Nov 2026 16:01:14 +0100	[thread overview]
Message-ID: <20261125150114.eWhmDZrv@linutronix.de> (raw)
In-Reply-To: <20261125141409.330411-1-w1355457260@gmail.com>

On 2026-11-25 14:14:09 [+0000], Zixin Wang wrote:
> On the second point, I ran a local QEMU test with the PREEMPT_RT kernel
> (7.3.5, HZ=1000).  The guest had 8 vCPUs; the test process was pinned to
> CPU 6 with:
> 
>   isolcpus=domain,nohz,6-7 nohz_full=6-7 rcu_nocbs=6-7 irqaffinity=0-5
> 
> The only difference between the two runs was the presence of
> rcu_nocb_poll.  The workload repeatedly created and closed perf events and
> epoll instances, which enqueued RCU callbacks on CPU 6; I traced
> rcu_callback, rcu_invoke_callback, and rcu_nocb_wake, and measured
> enqueue-to-invocation latency (including the grace period).  I ran three
> 80-iteration guest runs per mode, giving 480 callbacks per mode.
> 
>   without rcu_nocb_poll:
>     median 4.012 ms, p95 4.203 ms, max 7.040 ms
>   with rcu_nocb_poll:
>     median 7.003 ms, p95 9.971 ms, max 12.542 ms

This is pointless. The enqueue-to-invocation latency is meaningless. If
you have a RT task which preempts another task in its RCU-read section
then the grace period (and the invocation of all callbacks) will be
delayed until that RT task is done. Either way, even with things like
RCU-LAZY the callbacks can be delayed even further. That is fine.
Nothing really should rely on the callback execution.

The important part would be time spent in call_rcu(). And the latency
observed by an "real-time task" outside of RCU that is affected by this.
Also I prefer testing these things on bare metal so the host not pause
the guest for some reason.

> So far only you and Sebastian have replied to this patch.  I am waiting
> for more reviewer feedback before sending v7.

Yes, and if Frederick ask for different isolcpu handling then it needs
to be honoured ;)

> Thanks,
> Zixin

Sebastian

  reply	other threads:[~2026-11-25 15:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  7:46 [PATCH v6] Documentation: real-time: Add runtime tuning guide Zixin Wang
2026-11-25 10:44 ` Sebastian Andrzej Siewior
2026-11-25 13:20 ` Frederic Weisbecker
2026-11-25 14:14   ` Zixin Wang
2026-11-25 15:01     ` Sebastian Andrzej Siewior [this message]
2026-11-26 11:52       ` Zixin Wang
2026-11-25 14:52   ` Sebastian Andrzej Siewior
2026-11-25 17:01     ` Frederic Weisbecker
2026-11-25 17:13 ` Ahmed S. Darwish

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=20261125150114.eWhmDZrv@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=atomlin@atomlin.com \
    --cc=clrkwllms@kernel.org \
    --cc=corbet@lwn.net \
    --cc=darwi@linutronix.de \
    --cc=frederic@kernel.org \
    --cc=john.ogness@linutronix.de \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-devel@lists.linux.dev \
    --cc=rostedt@goodmis.org \
    --cc=w1355457260@gmail.com \
    --cc=wagi@monom.org \
    /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.