Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deadline not inherited across enclaves #2221

Open
fra-p opened this issue Feb 27, 2024 · 1 comment
Open

Deadline not inherited across enclaves #2221

fra-p opened this issue Feb 27, 2024 · 1 comment
Labels
c Related to C target feature New feature

Comments

@fra-p
Copy link

fra-p commented Feb 27, 2024

@edwardalee and I noticed that deadlines are not inherited when a chain of reactors spans across two enclaves. Here is the example we were looking at:
Untitled Diagram(2)
We were expecting Task1 inherit Task3's deadline (49ms) and be scheduled before Task4 (50ms deadline) within Enclave1, but apparently this is not happening. The first part of the output of the program is:
Screenshot from 2024-02-26 16-45-10
So Task4 with deadline 50ms is executed before Task1, which we expected to inherit the 49ms deadline, because apparently Task1 has no deadline. If we explicitly assign the deadline to Task1:
Untitled Diagram(3)
The execution is as expected:
Screenshot from 2024-02-26 16-50-54

Here is the code of the example:
Example.txt
And here the code with the explicit deadline for Task1:
ExampleExplicitDeadline.txt

The examples were run with the code from the "c-enclaves" branch.

Thank you!

@erlingrj
Copy link
Collaborator

Thanks for the report. We should definitely get support for propagating deadlines across enclave boundaries. It is probably not a big fix. What is more important is to actually get the c-enclaves merged. I might get some time to work on this the next weeks. I am happy for contributions to that :)

@erlingrj erlingrj added c Related to C target feature New feature labels Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c Related to C target feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants