On Tue, 3 Feb 2004 21:58, Ingo Molnar wrote:
* Con Kolivas <kernel@xxxxxxxxxxx> wrote:
At least it appears Intel are well aware of the priority problem, butthese instructions can be used in the idle=poll code instead of rep-nop.
full priority support across logical cores is not likely. However I
guess these new instructions are probably enough to work with if
someone can do the coding.
This way idle-wakeup can be done via the memory bus in essence, and the
idle threads wont waste CPU time. (right now idle=poll wastes lots of
cycles on HT boxes and is thus unusable.)
Thanks for explaining.
for lowprio tasks they are of little use, unless you modify gcc to
sprinkle mwait yields all around the 'lowprio code' - not very practical
i think.
Yuck!
Looks like the kernel is the only thing likely to be smart enough to do this correctly for some time yet.
Nick, any chance of seeing something like this in your sched domains? (that would be the right way unlike my hacking sched.c directly for a specific architecture).
On Tue, 3 Feb 2004 21:58, Ingo Molnar wrote:
* Con Kolivas <kernel@xxxxxxxxxxx> wrote:
At least it appears Intel are well aware of the priority problem, butthese instructions can be used in the idle=poll code instead of rep-nop.
full priority support across logical cores is not likely. However I
guess these new instructions are probably enough to work with if
someone can do the coding.
This way idle-wakeup can be done via the memory bus in essence, and the
idle threads wont waste CPU time. (right now idle=poll wastes lots of
cycles on HT boxes and is thus unusable.)
Thanks for explaining.
for lowprio tasks they are of little use, unless you modify gcc to
sprinkle mwait yields all around the 'lowprio code' - not very practical
i think.
Yuck!
Looks like the kernel is the only thing likely to be smart enough to do this correctly for some time yet.
Nick, any chance of seeing something like this in your sched domains? (that would be the right way unlike my hacking sched.c directly for a specific architecture).