[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <xhsmhjz05ud0r.mognet@vschneid-thinkpadt14sgen2i.remote.csb>
Date: Tue, 04 Nov 2025 14:45:56 +0100
From: Valentin Schneider <vschneid@...hat.com>
To: Shrikanth Hegde <sshegde@...ux.ibm.com>
Cc: Nicolas Saenz Julienne <nsaenzju@...hat.com>, Thomas Gleixner
<tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>, Borislav Petkov
<bp@...en8.de>, Dave Hansen <dave.hansen@...ux.intel.com>, "H. Peter
Anvin" <hpa@...or.com>, Andy Lutomirski <luto@...nel.org>, Peter Zijlstra
<peterz@...radead.org>, Arnaldo Carvalho de Melo <acme@...nel.org>, Josh
Poimboeuf <jpoimboe@...nel.org>, Paolo Bonzini <pbonzini@...hat.com>, Arnd
Bergmann <arnd@...db.de>, Frederic Weisbecker <frederic@...nel.org>, "Paul
E. McKenney" <paulmck@...nel.org>, Jason Baron <jbaron@...mai.com>, Steven
Rostedt <rostedt@...dmis.org>, Ard Biesheuvel <ardb@...nel.org>, Sami
Tolvanen <samitolvanen@...gle.com>, "David S. Miller"
<davem@...emloft.net>, Neeraj Upadhyay <neeraj.upadhyay@...nel.org>, Joel
Fernandes <joelagnelf@...dia.com>, Josh Triplett <josh@...htriplett.org>,
Boqun Feng <boqun.feng@...il.com>, Uladzislau Rezki <urezki@...il.com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>, Mel Gorman
<mgorman@...e.de>, Andrew Morton <akpm@...ux-foundation.org>, Masahiro
Yamada <masahiroy@...nel.org>, Han Shen <shenhan@...gle.com>, Rik van Riel
<riel@...riel.com>, Jann Horn <jannh@...gle.com>, Dan Carpenter
<dan.carpenter@...aro.org>, Oleg Nesterov <oleg@...hat.com>, Juri Lelli
<juri.lelli@...hat.com>, Clark Williams <williams@...hat.com>, Yair
Podemsky <ypodemsk@...hat.com>, Marcelo Tosatti <mtosatti@...hat.com>,
Daniel Wagner <dwagner@...e.de>, Petr Tesarik <ptesarik@...e.com>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org, rcu@...r.kernel.org,
x86@...nel.org, linux-arm-kernel@...ts.infradead.org,
loongarch@...ts.linux.dev, linux-riscv@...ts.infradead.org,
linux-arch@...r.kernel.org, linux-trace-kernel@...r.kernel.org
Subject: Re: [PATCH v6 23/29] context-tracking: Introduce work deferral
infrastructure
On 03/11/25 14:02, Shrikanth Hegde wrote:
> Hi Valentin.
>
> On 10/10/25 9:08 PM, Valentin Schneider wrote:
>> +++ b/include/linux/context_tracking_work.h
>> @@ -0,0 +1,26 @@
>> +/* SPDX-License-Identifier: GPL-2.0 */
>> +#ifndef _LINUX_CONTEXT_TRACKING_WORK_H
>> +#define _LINUX_CONTEXT_TRACKING_WORK_H
>> +
>> +#include <linux/bitops.h>
>> +
>> +enum {
>> + CT_WORK_n_OFFSET,
>> + CT_WORK_MAX_OFFSET
>> +};
>> +
>> +enum ct_work {
>> + CT_WORK_n = BIT(CT_WORK_n_OFFSET),
>> + CT_WORK_MAX = BIT(CT_WORK_MAX_OFFSET)
>> +};
>> +
>> +#include <asm/context_tracking_work.h>
>> +
>
> It fails to compile on powerpc (likey any arch other than x86)
>
Woops, thanks for testing!
> In file included from ./include/linux/context_tracking_state.h:8,
> from ./include/linux/hardirq.h:5,
> from ./include/linux/interrupt.h:11,
> from ./include/linux/kernel_stat.h:8,
> from ./include/linux/cgroup.h:27,
> from ./include/linux/memcontrol.h:13,
> from ./include/linux/swap.h:9,
> from ./include/linux/suspend.h:5,
> from arch/powerpc/kernel/asm-offsets.c:21:
> ./include/linux/context_tracking_work.h:17:10: fatal error:
> asm/context_tracking_work.h: No such file or directory
> 17 | #include <asm/context_tracking_work.h>
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> Gating works for compile, but no benefit of the series.
>
> +#ifdef HAVE_CONTEXT_TRACKING_WORK
> #include <asm/context_tracking_work.h>
> +#endif
>
Huh, looking at this I wonder why I shoved that here. That include belongs
in context_tracking.c itself; I'll fix that.
>
> I have been trying to debug/understand the issue seen with isolcpus= and
> nohz_full=. system is idle, even then it occasionally woken up to do
> some work. So I was interesting if this series can help.
Is there some ongoing thread for this particular issue or is this just
something you're experimenting with?
If you suspect stray IPIs hitting isolated CPUs I'd recommend tracing with
these events enabled:
ipi_send_cpu
ipi_send_cpumask
Powered by blists - more mailing lists