[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YdwKMfNkB7P1tm/m@hirez.programming.kicks-ass.net>
Date: Mon, 10 Jan 2022 11:28:01 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Ingo Molnar <mingo@...nel.org>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
"David S. Miller" <davem@...emloft.net>,
Ard Biesheuvel <ardb@...nel.org>,
Josh Poimboeuf <jpoimboe@...hat.com>,
Jonathan Corbet <corbet@....net>,
Al Viro <viro@...iv.linux.org.uk>
Subject: Re: [PATCH 0000/2297] [ANNOUNCE, RFC] "Fast Kernel Headers" Tree
-v1: Eliminate the Linux kernel's "Dependency Hell"
On Mon, Jan 03, 2022 at 05:29:02PM +0100, Ingo Molnar wrote:
> Yeah, so I *did* find this somewhat suboptimal too, and developed an
> earlier version that used linker section tricks to gain the field offsets
> more automatically.
>
> It was an unmitigated disaster: was fragile on x86 already (which has a zoo
> of linking quirks with no precedent of doing this before bounds.c
> processing), but on ARM64 and probably on most of the other RISC-ish
> architectures there was also a real runtime code generation cost of using
> linker tricks: 2-3 extra instructions per per_task() use - clearly
> unacceptable.
>
> Found this out the hard way after making it boot & work on ARM64 and
> looking at the assembly output, trying to figure out why the generated code
> size increased. :-/
Right, I suggested you do the per-cpu thing. And then Mark reported that
code-gen issue on arm64.
I'm still thinking the toolchains ought to look at fixing that. It'll be
too late to use for per-task, but at least the current per-cpu usages
will (eventually) get better code-gen.
Powered by blists - more mailing lists