Re: [PATCH v6] Documentation: real-time: Add runtime tuning guide
From: Sebastian Andrzej Siewior
Date: Wed Nov 25 2026 - 10:01:31 EST
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