Scheduling of different domains in Adeos
Dear Adeos Developers/Users,
while I was reading some papers about Adeos I was wondering how scheduling is done with Adeos, if there are several domains (e.g. each is an own operating system) working on top of it. Is there some kind of a master-scheduler which selects the domain which is allowed to run next based on a static priority?
Thanks for enlightment,
Markus Franke
Quoted 8 lines · Markus Franke
Dear Adeos Developers/Users,
while I was reading some papers about Adeos I was wondering how scheduling is done with Adeos, if there are several domains (e.g. each is an own operating system) working on top of it. Is there some kind of a master-scheduler which selects the domain which is allowed to run next based on a static priority?
Scheduling takes place only based on the domain priority, each time a new asynchronous event (interrupt) arrives or a domain reports to be idle. There is no explicit source file or function called "scheduler", you will find its logic in the dispatching code of pipelined interrupts and in ipipe_suspend_domain().
Jan
Quoted 5 lines · Jan Kiszka
Scheduling takes place only based on the domain priority, each time a new asynchronous event (interrupt) arrives or a domain reports to be idle. There is no explicit source file or function called "scheduler", you will find its logic in the dispatching code of pipelined interrupts and in
ipipe_suspend_domain().
As far as I understood, it is possible to run more than operating system on top of Adeos, at a time. Adeos is said to be a resource virtualization layer and the CPU is also a resource, which has to be shared. But if there are more than one operating system, who decides which one get's the CPU?
The question is out of scope of the interrupt virtualization. It's just a question about CPU virtualization.
Please correct me if I missunderstood something totally. :-)
Regards,
Markus Franke
begin:vcard
fn:Markus Franke
n:Franke;Markus
adr;quoted-printable:;;Vettersstra=C3=9Fe 64/722;Chemnitz;Saxony;09126;Germany email;internet:[email protected]
x-mozilla-html:FALSE
url:http://www.tu-chemnitz.de/~franm
version:2.1
end:vcard
Quoted 7 lines · Markus Franke
Quoted 5 lines · Jan Kiszka
Scheduling takes place only based on the domain priority, each time a new asynchronous event (interrupt) arrives or a domain reports to be idle. There is no explicit source file or function called "scheduler", you will find its logic in the dispatching code of pipelined interrupts and in
ipipe_suspend_domain().
Quoted 5 lines
As far as I understood, it is possible to run more than operating system on top of Adeos, at a time. Adeos is said to be a resource virtualization layer and the CPU is also a resource, which has to be shared. But if there are more than one operating system, who decides which one get's the CPU?
See above: each domain (which may contain an OS) has a certain priority, and the one with the highest priority which has events pending gets the CPU. That's what the Adeos/I-pipe patch does on event arrival or domain suspension.
Quoted 5 lines
The question is out of scope of the interrupt virtualization. It's just a question about CPU virtualization.
Please correct me if I missunderstood something totally. :-)
Adeos doesn't do full CPU virtualisation. Therefore, the domains must cooperate on those resources (memory management, FPU, etc.) that aren't switched by the nano-kernel. Adeos is not qemu or kvm, if this is what you have in mind.
Jan
Quoted 4 lines · Jan Kiszka
See above: each domain (which may contain an OS) has a certain priority, and the one with the highest priority which has events pending gets the CPU. That's what the Adeos/I-pipe patch does on event arrival or domain suspension.
Ok, this I know already.
Quoted 4 lines
Adeos doesn't do full CPU virtualisation. Therefore, the domains must cooperate on those resources (memory management, FPU, etc.) that aren't switched by the nano-kernel. Adeos is not qemu or kvm, if this is what you have in mind.
So if you want to get working more than one operating system, each embodied in it's own domain, you have to adapt the operating systems in order to get also some kind of CPU virtualization. But these changes are not part of the Adeos-Patches for the Linux kernel, right?
Has anybody ever tried to set up a system with let's say two Linux kernels working on top of Adeos, simultaneously?
Regards,
Markus
begin:vcard
fn:Markus Franke
n:Franke;Markus
adr;quoted-printable:;;Vettersstra=C3=9Fe 64/722;Chemnitz;Saxony;09126;Germany email;internet:[email protected]
x-mozilla-html:FALSE
url:http://www.tu-chemnitz.de/~franm
version:2.1
end:vcard
Quoted 13 lines · Markus Franke
Quoted 4 lines · Jan Kiszka
See above: each domain (which may contain an OS) has a certain priority, and the one with the highest priority which has events pending gets the CPU. That's what the Adeos/I-pipe patch does on event arrival or domain suspension.
Ok, this I know already.
Quoted 4 lines
Adeos doesn't do full CPU virtualisation. Therefore, the domains must cooperate on those resources (memory management, FPU, etc.) that aren't switched by the nano-kernel. Adeos is not qemu or kvm, if this is what you have in mind.
Quoted 4 lines
So if you want to get working more than one operating system, each embodied in it's own domain, you have to adapt the operating systems in order to get also some kind of CPU virtualization. But these changes are not part of the Adeos-Patches for the Linux kernel, right?
They are included as far as Linux as root domain is concerned, i.e. the lowest prioritised domain, hosting the whole stack.
Quoted 3 lines
Has anybody ever tried to set up a system with let's say two Linux kernels working on top of Adeos, simultaneously?
Don't know, but I also don't think so. There is still quite a difference between stacking Linux and Xenomai on top of Adeos (with Linux as root). Xenomai was built with the constraints of running cooperatively on top of Linux already in mind.
Jan