Cell isolation

5 messages Options
Embed this post
Permalink
XavierL

Cell isolation

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hello,
 
I would like to know what is the isolation policy between cells in OKL4 examples (and how to change it).
Indeed I modified the decrypt example distributed with OKL4 to crash the decrypt cell, and as soon as the OKL4 cell crashes, the Linux cell freezes too.
Furthermore, when I try to block the OKL4 celle with a while(1)}; the OKL4 cell still freezes.
Since I try to crash/block the cell when there is no communication between the cells, I don't understand why the Linux cells is affected.
Does anyone has an answer?
Thanks.
 
Xavier.
 
 

_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer
Josh Matthews

Re: Cell isolation

Reply Threaded More More options
Print post
Permalink
Hi Xavier,

On Fri, July 3, 2009 10:40 am, [hidden email] wrote:

> Hello,
>
> I would like to know what is the isolation policy between cells in OKL4
> examples (and how to change it).
> Indeed I modified the decrypt example distributed with OKL4 to crash the
> decrypt cell, and as soon as the OKL4 cell crashes, the Linux cell freezes
> too.
> Furthermore, when I try to block the OKL4 celle with a while(1)}; the OKL4
> cell still freezes.
> Since I try to crash/block the cell when there is no communication between
> the cells, I don't understand why the Linux cells is affected.
> Does anyone has an answer?

The isolation policy is very strong - cells can't impact each other unless
they have received a capability to communicate, or are sharing some
memory.

This points me to an issue with your cell priorities - is the blocked cell
(with the while(1); which is always doing work) at a higher priority than
Linux?

Cheers,
Josh


_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer
XavierL

Re: Cell isolation

Reply Threaded More More options
Print post
Permalink
In reply to this post by XavierL
Hi,

Thanks for your answer.

I understand that the Linux freeze can be caused by a higher priority of the
other cell but I have not found where to change priority setting in this
example.
Secondly, when I generate a segmentation fault in the decrypt cell, I don't
understand why the Linux freezes too, I supposed that the decrypt cell is no
longer scheduled as soon as it crashes, so it shouldn't block the Linux
cell. How is it possible?

Regards,
Xavier.

-----Message d'origine-----
De : Josh Matthews [mailto:[hidden email]]
Envoyé : vendredi 10 juillet 2009 00:11
À : [hidden email]
Cc : [hidden email]
Objet : Re: [okl4-developer] Cell isolation

Hi Xavier,

On Fri, July 3, 2009 10:40 am, [hidden email] wrote:

> Hello,
>
> I would like to know what is the isolation policy between cells in OKL4
> examples (and how to change it).
> Indeed I modified the decrypt example distributed with OKL4 to crash the
> decrypt cell, and as soon as the OKL4 cell crashes, the Linux cell freezes
> too.
> Furthermore, when I try to block the OKL4 celle with a while(1)}; the OKL4
> cell still freezes.
> Since I try to crash/block the cell when there is no communication between
> the cells, I don't understand why the Linux cells is affected.
> Does anyone has an answer?

The isolation policy is very strong - cells can't impact each other unless
they have received a capability to communicate, or are sharing some
memory.

This points me to an issue with your cell priorities - is the blocked cell
(with the while(1); which is always doing work) at a higher priority than
Linux?

Cheers,
Josh

_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer
Josh Matthews

Re: Cell isolation

Reply Threaded More More options
Print post
Permalink
Hi Xavier,

On Fri, July 10, 2009 9:45 am, [hidden email] wrote:
> Hi,
>
> Thanks for your answer.
>
> I understand that the Linux freeze can be caused by a higher priority of
> the other cell but I have not found where to change priority setting in
> this example.

The priority of a cell can be changed via the @priority attribute on the
cell element in the cell configuration file.

> Secondly, when I generate a segmentation fault in the decrypt cell, I
> don't understand why the Linux freezes too, I supposed that the decrypt
> cell is no longer scheduled as soon as it crashes, so it shouldn't block
> the Linux cell. How is it possible?

In this case, how are you determining that Linux has frozen?

Best regards,
Josh


_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer
XavierL

Re: Cell isolation

Reply Threaded More More options
Print post
Permalink
In reply to this post by XavierL
 Hi

> The priority of a cell can be changed via the @priority attribute on the
> cell element in the cell configuration file.

The problem is that there is no @priority attribute in the cell's
Sconscript.

> In this case, how are you determining that Linux has frozen?

Because the Linux console doesn't react anymore.

Best regards,
Xavier

_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer