Fix IDLE issue with sedf scheduler on IA64
Quoted 6 lines
From: Ian Pratt [mailto:[email protected]]
Sent: Thursday, July 14, 2005 9:24 AMIf you really want to do something like this, it would be much better just to detect a switch to the idle domain (on whatever CPU dom0
happens
Quoted 2 lines
to be running on) and load the register and mm state for dom0 and make it appear to be the last domain that ran. The lazy switching logic
will
Quoted 3 lines
then take care of things.
Ian
I'm still doubt the really gain of "not switch to idle", which may bring dom0 less period on real job compared to other domains. Saying current model, dom0 is requesting to block in its own idle loop. In this way, dom0's idle loop doesn't occupy any real slice, and the whole period allocated to dom0 is all spent on meaningful job. Then let's not switch to idle domain with some trick in context_switch. What's happen? If dom0 is in idle loop and request to block, its next period/slice is set as 20ms and scheduler decides to switch to IDLE with next expire for scheduler is 2ms. Then in context_switch, idle domain is instead replaced by Dom0 which may simply does idle loop too. When next schedule happens, 2ms is minus from Dom0's slice however this 2ms is likely to be spent on completely useless loop. Finally in this period, Dom0 only gets 18ms to do real job, and I think this will also affect the throughput of Dom0. Just take a special case as example here... :-) So we need to balance based on future experimental data.
Thanks,
Kevin