public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Kunwu Chan" <kunwu.chan@linux.dev>
To: "Sean Christopherson" <seanjc@google.com>
Cc: "Lai Jiangshan" <jiangshanlai@gmail.com>,
	"Paul E. McKenney" <paulmck@kernel.org>,
	"Josh Triplett" <josh@joshtriplett.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	rcu@vger.kernel.org, kvm@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Nikita Kalyazin" <kalyazin@amazon.com>,
	"Keir Fraser" <keirf@google.com>
Subject: Re: [RFC PATCH 0/3] srcu: KVM: Add, export and use call_srcu_expedited()
Date: Fri, 01 May 2026 09:51:04 +0000	[thread overview]
Message-ID: <a66e8fbcc197cd25b234d946f818f97d6b76bab8@linux.dev> (raw)
In-Reply-To: <abSZyLff5y-IQ0Ix@google.com>

[...]
> I'm all for a general solution, but that's far, far beyond my SRCU knowledge level.
> I was quite proud of myself for piecing together the incurred-delay. :-)
> 
> FYI, I'm going to be unavailable for ~2 weeks. Nikita (Cc'd) can likely help test
> potential fixes.
> 
Hi Sean, hi Nikita,

Some data points on the RFC scenario.

The setup follows the pattern discussed in the RFC:
a call_srcu()-like path that can start a non-expedited GP,
followed by a synchronize_srcu_expedited()-like wait on
the same SRCU instance.

KVM selftest setup, BPF tracing.Single VM, single vCPU.
Guest holds a long measured window (~8s, fixed in selftest).

Baseline:
  In 5 recent 10-run batches, the no-preemption case produced
  a single >1ms sample in total.

With same-CPU preemption:
  >1ms reproduces consistently and shows up in most runs.

For >1ms samples, sched_switch/off-CPU attribution lines up
with switch-out in the same measured window.

In this setup, >1ms is mostly off-CPU time,not continuous in-CPU execution.

Question on the original report:
when synchronize_srcu_expedited() delay was observed,
was the host mostly idle/bursty, or under steady load?

Can share repro details if needed.

Thanks,
Kunwu Chan

      reply	other threads:[~2026-05-01  9:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-09 19:30 [RFC PATCH 0/3] srcu: KVM: Add, export and use call_srcu_expedited() Sean Christopherson
2026-03-09 19:30 ` [RFC PATCH 1/3] srcu: Declare exported symbols before including srcu{tiny,tree}.h Sean Christopherson
2026-03-09 19:30 ` [RFC PATCH 2/3] srcu: Add and export call_srcu_expedited() to avoid transferring grace periods Sean Christopherson
2026-03-09 19:30 ` [RFC PATCH 3/3] KVM: Expedite SRCU callbacks when freeing objects during I/O bus registration Sean Christopherson
2026-03-13  8:51 ` [RFC PATCH 0/3] srcu: KVM: Add, export and use call_srcu_expedited() Kunwu Chan
2026-03-13 23:12   ` Sean Christopherson
2026-05-01  9:51     ` Kunwu Chan [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=a66e8fbcc197cd25b234d946f818f97d6b76bab8@linux.dev \
    --to=kunwu.chan@linux.dev \
    --cc=jiangshanlai@gmail.com \
    --cc=josh@joshtriplett.org \
    --cc=kalyazin@amazon.com \
    --cc=keirf@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=rcu@vger.kernel.org \
    --cc=seanjc@google.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