Re: [PATCH 2/3] RT: Cache cpus_allowed weight for optimizing migration

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Gregory Haskins <ghaskins@...>
Cc: <linux-rt-users@...>, <linux-kernel@...>, Dmitry Adamushko <dmitry.adamushko@...>, Peter Zijlstra <a.p.zijlstra@...>, Ingo Molnar <mingo@...>, Darren Hart <dvhltc@...>
Date: Thursday, October 25, 2007 - 8:03 pm

--
On Thu, 25 Oct 2007, Gregory Haskins wrote:

Ah, after reading the comment in your code, I might know where our
miscommunication is from.  When you hit a task that can't migrate, you
simply stop and don't bother looking for a lowest rq to place it on.

I'm saying to do one better. Put the code in the pick_next_highest_task_rt
and _skip_ rt tasks with nr_cpus_allowed == 1. So we can then look to
migrate another RT task that is lower in priority than a bounded RT task.

Does this clear up what I'm trying to say?

BTW, stop looking for a lowest_rq isn't really an optimization here. Since
we only look at cpus that are in the tasks cpu affinity mask and we skip
the cpu that it currently is on. So we don't even take a lock in that
case.

-- Steve

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] RT: balance rt tasks enhancements v6, Gregory Haskins, (Thu Oct 25, 10:46 am)
[PATCH 3/3] RT: CPU priority management, Gregory Haskins, (Thu Oct 25, 10:46 am)
Re: [PATCH 3/3] RT: CPU priority management, Steven Rostedt, (Thu Oct 25, 11:27 am)
Re: [PATCH 3/3] RT: CPU priority management, Gregory Haskins, (Thu Oct 25, 1:26 pm)
Re: [PATCH 3/3] RT: CPU priority management, Steven Rostedt, (Thu Oct 25, 1:36 pm)
Re: [PATCH 3/3] RT: CPU priority management, Gregory Haskins, (Thu Oct 25, 1:55 pm)
Re: [PATCH 2/3] RT: Cache cpus_allowed weight for optimizing..., Steven Rostedt, (Thu Oct 25, 8:03 pm)
[PATCH 1/3] RT: cleanup some push-rt logic, Gregory Haskins, (Thu Oct 25, 10:46 am)