[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20241209095730.GG21636@noisy.programming.kicks-ass.net>
Date: Mon, 9 Dec 2024 10:57:30 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Costa Shulyupin <costa.shul@...hat.com>
Cc: Thomas Gleixner <tglx@...utronix.de>, Waiman Long <longman@...hat.com>,
Juri Lelli <juri.lelli@...hat.com>,
Valentin Schneider <vschneid@...hat.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: Interference of CPU hotplug on CPU isolation and Real-Time tasks
On Mon, Dec 09, 2024 at 09:10:35AM +0200, Costa Shulyupin wrote:
> Questions:
> 1. Why stop_machine() is used during the CPU hotplug?
It is the easiest (and most brutal) serialization scheme to ensure
nothing else will poke at the data you're about to change.
> 2. Is it worth testing using stop_one_cpu(), or would that be the
> wrong approach?
Yes, and yes. That is, I'm fairly sure that just trying it will horribly
break stuff, but it is where you want to end up.
> 3. Do you have any additional recommendations?
Audit the full cpu hotplug stack and determine who all relies on this
'implicit' serialization, then proceed to provide alternative solutions
for these sites. Then, at the very end move to stop_one_cpu().
Powered by blists - more mailing lists