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 sgaalloc and sgafree to transport #1057

Open
iyzhang opened this issue Dec 8, 2023 · 0 comments
Open

[runtime] Move sgaalloc and sgafree to transport #1057

iyzhang opened this issue Dec 8, 2023 · 0 comments
Labels
enhancement Enhancement Request on an Existing Feature

Comments

@iyzhang
Copy link
Contributor

iyzhang commented Dec 8, 2023

Context

Currently, our SharedDemiRuntime, implements the default memory runtime, so any libOSes that just allocate from the heap can allocate memory from the SharedDemiRuntime. However, for libOSes that need special memory (DPDK, raw sockets), this does not work. Currently they are still allocating memory from the transport through the libOS.

Proposed Solution

There are two ways to fix this. First is that in addition to a runtime, each libOS has a libOS-specific transport that performs low-level tasks like memory allocation. Alternatively, we can add the transport as a generic to the SharedDemiRuntime, but that would make it impossible for two libOSes with different memory allocators to share the same runtime. This may or may not be necessary/useful in the future.

@iyzhang iyzhang added the enhancement Enhancement Request on an Existing Feature label Dec 8, 2023
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

No branches or pull requests

1 participant