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: <1047ba4c25cdf4c0098dac308bcddb4b8b671954.camel@redhat.com>
Date: Fri, 11 Apr 2025 15:02:11 +0200
From: Gabriele Monaco <gmonaco@...hat.com>
To: Frederic Weisbecker <frederic@...nel.org>
Cc: Thomas Gleixner <tglx@...utronix.de>, linux-kernel@...r.kernel.org, 
 Waiman Long <longman@...hat.com>
Subject: Re: [PATCH] timers: Exclude isolated cpus from timer migation



On Fri, 2025-04-11 at 13:31 +0200, Frederic Weisbecker wrote:
> Le Fri, Apr 11, 2025 at 09:08:35AM +0200, Gabriele Monaco a écrit :
> > Mmh, my patch is in fact allowing isolated cores to still migrate
> > everything if they go offline.
> 
> Sure that doesn't change.
> 
> > 
> > However I don't think housekeeping CPUs can execute remote timers
> > on
> > isolated ones.
> 
> I'm confused, a CPU can't execute something on another CPU (except
> with
> an IPI). But:
> 
> Before your patch, a housekeeping or isolated CPU can pull timers
> from
> any other CPU and execute them on its behalf.
> 
> After your patch, a housekeeping CPU can only pull timers from other
> housekeeping CPUs. And isolated CPUs each execute their own global
> timers.
> 

Right, the way I said it doesn't really make sense.

What I mean is: why wouldn't a housekeeping CPU pull global timers from
an isolated one?

We want to prevent the other way around, but I think housekeeping
should be encouraged to pull timers from isolated CPUs, even if those
are not idle.

I see only preventing isolated CPUs from pulling remote timers may play
bad with the algorithm since they'd register in the hierarchy but just
not pull timers.
(This simpler approach works in our scenario though)

The idea in my patch could mostly work, but I'd explicitly let
housekeeping CPUs pull timers from isolated (while of course not doing
it for offline ones).

Does it make sense to you?

Thanks,
Gabriele


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ