[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220425093317.GF2731@worktop.programming.kicks-ass.net>
Date: Mon, 25 Apr 2022 11:33:17 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Donghai Qiao <dqiao@...hat.com>
Cc: akpm@...ux-foundation.org, sfr@...b.auug.org.au, arnd@...db.de,
heying24@...wei.com, andriy.shevchenko@...ux.intel.com,
axboe@...nel.dk, rdunlap@...radead.org, tglx@...utronix.de,
gor@...ux.ibm.com, donghai.w.qiao@...il.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 04/11] smp: replace smp_call_function_single() with
smp_call()
On Fri, Apr 22, 2022 at 04:00:33PM -0400, Donghai Qiao wrote:
> Eliminated the percpu global csd_data and temporarily hook up
> to smp_call().
>
> There is no obvious reason or evidence that the differentiation
Using the on-stack csd seems like an obvious benefit to me. Stack is
often cache-hot, while the percpu stuff is likely a cache-miss. Worse,
the call_function_data as used by the mask functions is likely a double
miss due to the O(n^2) nature of the thing.
Powered by blists - more mailing lists