Skip to content

refactor(cells): async cell allocate/free - #602

Open
mccormickt wants to merge 1 commit into
aurae-runtime:mainfrom
mccormickt:cells-async
Open

refactor(cells): async cell allocate/free#602
mccormickt wants to merge 1 commit into
aurae-runtime:mainfrom
mccormickt:cells-async

Conversation

@mccormickt

Copy link
Copy Markdown
Contributor

Replace the proxy_if_needed! macro and make CellsCache async. broadcast_kill stays the only sync function, as it is called by Drop. Likewise, do_free! is replaced by teardown_process_and_cgroup.

This now frees cells concurrently, so a host with many cells tears down in roughly the time of the slowest cell rather than the sum of all of them. No behavior change is expected.

Replace the `proxy_if_needed!` macro and make `CellsCache` async. `broadcast_kill` stays the only sync function, as it is called by `Drop`. Likewise, `do_free!` is replaced by `teardown_process_and_cgroup`.

This now frees cells concurrently, so a host with many cells tears down in roughly the time of the slowest cell rather than the sum of all of them. No behavior change is expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant