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

[runtime] Move scheduler to shared runtime #868

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

iyzhang
Copy link
Contributor

@iyzhang iyzhang commented Aug 9, 2023

This PR encapsulates the scheduler in the runtime (removes its public visibility) and creates a shared DemiRuntime abstraction to hold it. The DemiRuntime is allocated in the Demikernel library level and passed into each libOS. The DemiRuntime implements the Runtime trait and the MemoryRuntime trait, so it can be used for both coroutine scheduling and memory allocation. It is cloneable and the scheduler is currently using dynamic runtime checks for borrowing, so libOSes can safely share as long as only one libOS is using it at a time.

@iyzhang iyzhang added the enhancement Enhancement Request on an Existing Feature label Aug 9, 2023
@iyzhang iyzhang self-assigned this Aug 9, 2023
@iyzhang iyzhang force-pushed the wip-enhancement-runtime-move-scheduler branch from 414cd73 to 1f76a08 Compare August 9, 2023 23:55
@ppenna ppenna changed the title [runtime] Enhancement: Move scheduler to shared runtime [runtime] Move scheduler to shared runtime Aug 10, 2023
Copy link
Contributor

@ppenna ppenna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this.

@iyzhang iyzhang force-pushed the wip-enhancement-runtime-move-scheduler branch from ed7904f to 34e0487 Compare August 10, 2023 19:09
@iyzhang iyzhang merged commit a8191c5 into dev Aug 10, 2023
11 checks passed
@iyzhang iyzhang deleted the wip-enhancement-runtime-move-scheduler branch August 10, 2023 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement Request on an Existing Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants