lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87ldyf3621.fsf@mail.lhotse>
Date: Wed, 23 Oct 2024 13:29:42 +1100
From: Michael Ellerman <mpe@...erman.id.au>
To: Shrikanth Hegde <sshegde@...ux.ibm.com>, Christian Loehle
 <christian.loehle@....com>
Cc: x86@...nel.org, Vincent Guittot <vincent.guittot@...aro.org>, Ingo
 Molnar <mingo@...hat.com>, Dietmar Eggemann <dietmar.eggemann@....com>,
 Pierre Gondois <pierre.gondois@....com>, "linux-kernel@...r.kernel.org"
 <linux-kernel@...r.kernel.org>, Thomas Gleixner <tglx@...utronix.de>,
 Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH] sched: Make ASYM_PACKING compile-time arch config

Shrikanth Hegde <sshegde@...ux.ibm.com> writes:
> On 10/18/24 03:16, Christian Loehle wrote:
>> Only x86 and Power7 set SD_ASYM_PACKING at boot-time depending on the
>
> Power10 on Shared Processor LPAR also enables that.
>
>> system. All other platforms don't make use of asym-packing anyway,
>> so introduce auxiliary ARCH_HAS_SCHED_ASYM_PACKING and guard all the
>> related logic behind that so it isn't compiled when not needed.
>> 
>> On arm64 this reduces
>> size kernel/sched/fair.o
>>     text	   data	    bss	    dec	    hex	filename
>>    74120	   4097	     88	  78305	  131e1	kernel/sched/fair.o
>> to
>> size kernel/sched/fair.o
>>     text	   data	    bss	    dec	    hex	filename
>>    72896	   4065	     88	  77049	  12cf9	kernel/sched/fair.o
>> 
>> Most of that is on the load-balance hot-path, in particular
>> need_active_balance() reduces from 141 to 84 instructions.
>
> This patch sprinkes #ifdef across the code. IMHO it makes the code 
> difficult to read.

Yes, strong agree on that.

It should be possible to clean that up for the most part with some
static inline helpers with stubs for the disabled case, in the usual
kernel style.

Also Christian please Cc linuxppc-dev@...ts.ozlabs.org on v2.

cheers

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ