Re: [RFC v2 PATCH 0/16] Optimize this_cpu_*() ops for non-x86 (ARM64 for this series)

Jason Gunthorpe <[email protected]> Tue, 4 Aug 2026 15:16:46 -0300
Newsgroups gmane.linux.kernel,gmane.linux.kernel.mm,gmane.linux.ports.arm.kernel
Message-ID <[email protected]>
On Tue, Aug 04, 2026 at 07:06:51PM +0100, Matthew Wilcox wrote:
> On Tue, Aug 04, 2026 at 11:40:54AM -0300, Jason Gunthorpe wrote:
> > That said there is still a merit for things like replicating .text, and
> > I think we will also have some multi-socket systems that would benefit
> > from this too..
> 
> Are you referring to kernel text replication or userspace text
> replication?  If the latter, I don't think we need per-CPU page tables
> to do it.

In a sense both, if you build a system with poor cross-socket
performance then there can be big wins to replicate .text.

I've thought kernel needs to do it with text replication, there are
too many absolute relocations to make two .text VAs work?

Userspace can meaningfully work on a non-replicated basis where single
processes are localized to sockets. I think people do things like this
already, but AFAIK it is not ergonomic to setup.

Jason