xen-devel
[Xen-devel] Re: IDLE domain is scheduled more than dom0
On Monday 11 July 2005 14:19, Tian, Kevin wrote:
> >From: sd386@xxxxxxxxxxxxxxxx [mailto:sd386@xxxxxxxxxxxxxxxx] On
> >Behalf Of Stephan Diestelhorst
> >Sent: Monday, July 11, 2005 7:26 PM
> >
> >> Not sure whether that strange coming from the fact that IDLE is also
> >> initialized with period as WEIGHT_PERIOD(100ms)?
> >
> >This will not matter, and in fact add_domain will not get called for
>> the idle task.
>
> Ah, yes, slice of IDLE is always 0, which means arbitration will take
> effect on every tick when current is IDLE.
Not quite. Arbitration points are set by the value of ret.task in do_schedule,
for the idle-task this value is estimated by the time the first domain on the
waitq gets ready. (Bear in mind that the idle task only runs if dom0 is
blocked once you specify the EXTRA_AWARE flag!) If the waitq is empty the
idle task runs for a relatively long time (one second), but gets immediately
descheduled when the domain wakes up!
> >> >b) set inf->slice = MILLIESECS(20);
> >
> >Okay, thanks for your investigation!
> >The thing is that the idle domain IS the lowest prioritised domain in the
> >system! So if you set the EXTRA_AWARE flag, it should almost never get
> >scheduled. The only case when this will happen is when dom0 does I/O,
> > as this is treated differently whether it occurs in EDF-time or in
> > extra-time.
> > I will have a closer look at this, as this behaviour is not acceptable.
>
> And one thing I'd like you to know is, my test environment is with
> XEN/VTI domain0, which is whole unmodified one without any explicit
> request to do_block. So actually within this model, you can consider
> Dom0 as always runable... Not sure this different behavior as xen0 will
> cause any issue in sedf scheduler which, however can be considered as an
> extreme example for IDLE never to be scheduled. ;-)
But still it should work!
Stephan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- RE: [Xen-devel] Re: IDLE domain is scheduled more than dom0, Magenheimer, Dan (HP Labs Fort Collins)
- RE: [Xen-devel] Re: IDLE domain is scheduled more than dom0, Magenheimer, Dan (HP Labs Fort Collins)
- RE: [Xen-devel] Re: IDLE domain is scheduled more than dom0, Ian Pratt
- [Xen-devel] RE: IDLE domain is scheduled more than dom0, Tian, Kevin
- [Xen-devel] RE: IDLE domain is scheduled more than dom0, Tian, Kevin
- RE: [Xen-devel] Re: IDLE domain is scheduled more than dom0, Tian, Kevin
- RE: [Xen-devel] Re: IDLE domain is scheduled more than dom0, Tian, Kevin
|
|
|