Re: [PATCH] Kick CPUS that might be sleeping in cpus_idle_wait

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steven Rostedt <rostedt@...>
Cc: <linux-kernel@...>, <torvalds@...>, <mingo@...>, <tglx@...>, <len.brown@...>, <venkatesh.pallipadi@...>, <abelay@...>, <a.p.zijlstra@...>, <ak@...>
Date: Wednesday, January 9, 2008 - 7:42 pm

> Subject: [PATCH] Kick CPUS that might be sleeping in cpus_idle_wait

s/cpus_/cpu_/

On Wed, 09 Jan 2008 15:42:10 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:


(wakes up)


This seems rather hacky.  Although it may turn out to be the most efficient
fix, dunno.

I'd have thought that the right fix would be to plug the race which you
described at the top-of-thread.  That might require some redesign, but it
sounds like the design is wrong anyway.

Maybe your proposed fix is suitable for a 2.6.24 bandaid..

<looks at cpu_idle_wait()>

<pokes his tongue out at the person who put in a global,
exported-to-modules interface and didn't bother documenting it>

OK, it's called infrequently, so a few extra IPIs there won't hurt.


btw, it's pretty damn sad that cpu_idle_wait() will always stall for at
least one second.  That's a huge amount of time and I bet it's thousands of
times longer than is actually needed..
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH] kick sleeping idle CPUS on cpu_idle_wait, Steven Rostedt, (Mon Jan 7, 10:27 pm)
RE: [PATCH] Kick CPUS that might be sleeping in cpus_idle_wait, Pallipadi, Venkatesh, (Wed Jan 9, 8:12 pm)
Re: [PATCH] Kick CPUS that might be sleeping in cpus_idle_wait, Andrew Morton, (Wed Jan 9, 7:42 pm)
RE: [PATCH] Kick CPUS that might be sleeping in cpus_idle_wait, Pallipadi, Venkatesh, (Thu Jan 10, 1:31 pm)