[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20241002115435.4e618a8e@gandalf.local.home>
Date: Wed, 2 Oct 2024 11:54:35 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Cc: linux-kernel@...r.kernel.org, linux-rt-devel@...ts.linux.dev, Ben Segall
<bsegall@...gle.com>, Dietmar Eggemann <dietmar.eggemann@....com>, Ingo
Molnar <mingo@...hat.com>, Juri Lelli <juri.lelli@...hat.com>, Mel Gorman
<mgorman@...e.de>, Peter Zijlstra <peterz@...radead.org>, Valentin
Schneider <vschneid@...hat.com>, Vincent Guittot
<vincent.guittot@...aro.org>, Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [RFC] Repeated rto_push_irq_work_func() invocation.
On Wed, 2 Oct 2024 17:35:00 +0200
Sebastian Andrzej Siewior <bigeasy@...utronix.de> wrote:
> > Hmm, I probably should look deeper to make sure that anytime a schedule
> > happens where there's overloaded RT tasks, it tries to push.
>
> I think it tried pull on schedule but then it got outsourced to push via
> the IPI with this new code. Don't remember the details
Pull is much more expensive than push. That's because we keep track of the
"cpuprio" which is the priority of tasks running on each CPU. To do a push,
you simply look for the CPU running the lowest priority task using the
cpuprio logic and send the task there.
For a pull, we have no idea which is the highest priority RT task that is
waiting. We originally did a search of all the CPUs with overloaded RT
tasks, but this search takes way to long, and since it's done in the
scheduler, it caused high latency. Which is what the IPI dance is trying to
mitigate.
-- Steve
Powered by blists - more mailing lists