mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: jim.cromie@gmail.com
Cc: Jim Cromie via B4 Relay <devnull+jim.cromie.gmail.com@kernel.org>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Josh Poimboeuf <jpoimboe@kernel.org>,
	Jason Baron <jbaron@akamai.com>,
	Alice Ryhl <aliceryhl@google.com>,
	Steven Rostedt <rostedt@goodmis.org>,
	Ard Biesheuvel <ardb@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/5] jump_label, x86, dyndbg: Batch multi-key static branch updates
Date: Fri, 4 Dec 2026 12:29:40 -0800	[thread overview]
Message-ID: <20261204122940.e702b97c014bd654126718b4@linux-foundation.org> (raw)
In-Reply-To: <20261204-jump-batch-261128-v3-0-2adda55a5d71@gmail.com>

On Fri, 04 Dec 2026 11:27:51 -0700 Jim Cromie via B4 Relay <devnull+jim.cromie.gmail.com@kernel.org> wrote:

> Toggling many boolean static keys at once -- such as enabling or
> disabling pr_debug() sites across vmlinux and loaded modules --
> currently patches one static key at a time. Each toggle sends a full
> set of cross-CPU text-poke IPIs (~39.7k CAL IPIs to flip 1,885 active
> builtin keys across 8 CPUs on x86). Even if kernel/jump_label.c defers
> arch_jump_label_transform_apply() across a batch of static-keys, x86's
> smp_text_poke_batch_add() flushes whenever a poke address arrives below
> the tail entry (~2 entries per batch in dyndbg descriptor order) and
> hides its 256-entry flush boundaries from jump_label.c.
> 
> This series updates all three layers so a static_key_batch guard
> transparently batches static_key_{enable,disable,slow_inc,slow_dec}()
> calls while handling out-of-order poke addresses and same-batch state
> reversals cleanly:
> 
> ...
>
> Measured on an 8-vCPU x86_64 guest (v7.4-rc5, 1,997 builtin pr_debug
> descriptors / 1,885 non-init keys / 1,964 jump sites,
> CONFIG_PROVE_LOCKING=y):
> 
>   Workload                        master     v3 (5 patches)   Speedup
>   -------------------------------------------------------------------
>   echo "+p" > control             39,712          282 CAL      141x
>   echo "-p" > control             39,674          255 CAL      156x
>   "+p ; -p" (1x)                  79,256          424 CAL      187x
>   "+p ; -p" (4x)                 316,773          756 CAL      419x
> 
> Bare-metal desktops (vmlinux + loaded modules incl. amdgpu):
> 
>   Host / CPUs / Sites          "module amdgpu +p"   "+p ; -p" (4x)
>   ----------------------------------------------------------------
>   Ryzen 9 6900HX, 16c, 8,484          615 CAL           12,524 CAL
>   Ryzen 9 3900X,  24c, 8,197          909 CAL           18,243 CAL

Jim, is 491x the best you can do?  c'mon, man...

What I'm not finding in here is the actual user-visible effect.  How
much user-visible wall time are we talking about here?  When they
do what??

(And this info should be in the first paragraph of the [0/N]!  When
busy maintainers&reviewers look at a thing, their uppermost question is
"why should I care".  Tell them!)

Sashiko said a bunch of stuff, fwtw:
	https://sashiko.dev/#/patchset/20261204-jump-batch-261128-v3-0-2adda55a5d71@gmail.com

      parent reply	other threads:[~2026-12-04 20:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 18:27 Jim Cromie via B4 Relay
2026-12-04 18:27 ` [PATCH v3 1/5] x86/alternatives: Keep text-poke batch sorted on insert Jim Cromie via B4 Relay
2026-12-04 18:27 ` [PATCH v3 2/5] x86/jump_label: Sync arch_jump_label_transform_queue() with batch limit Jim Cromie via B4 Relay
2026-12-04 18:27 ` [PATCH v3 3/5] jump_label: Add static_key_batch API Jim Cromie via B4 Relay
2026-12-04 18:27 ` [PATCH v3 4/5] dyndbg: Batch static branch updates across queries Jim Cromie via B4 Relay
2026-12-04 18:27 ` [PATCH v3 5/5] dyndbg: Batch classmap param bit-changes into multi-query Jim Cromie via B4 Relay
2026-12-04 20:29 ` Andrew Morton [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=20261204122940.e702b97c014bd654126718b4@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=aliceryhl@google.com \
    --cc=ardb@kernel.org \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=devnull+jim.cromie.gmail.com@kernel.org \
    --cc=hpa@zytor.com \
    --cc=jbaron@akamai.com \
    --cc=jim.cromie@gmail.com \
    --cc=jpoimboe@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®