-
Notifications
You must be signed in to change notification settings - Fork 382
Store engine together with Module to mitigate memory increase issue #1982
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great patch!
I tested this with dhat and bytes at t-gmax is reduced to 13MB by this. It is also reached at the end of the compilation step, so this definitely fixes the problem.
Only question I have is about the size_estimate
(see below)
/// The runtime engine to run this module. Ideally we could use a single engine | ||
/// for all modules but the memory issue described in <https://github.com/wasmerio/wasmer/issues/4377> | ||
/// requires using one engine per module as a workaround. | ||
pub engine: Engine, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should update the docs for size_estimate
too. It still mentions "Store/Engine are not cached anymore".
Also: Don't we need to update the code for size_estimate
now that we store the engine again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good points. Was thinking about them before but then forgot. Should be addressed in the last commit. Once approved, I can squash the patch commits for easy porting and add a CHANGELOG entry.
Thanks for the confirmation! I did not test it yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
b7ef836
to
1b110c6
Compare
@Mergifyio backport release/1.5 release/1.4 |
✅ Backports have been created
|
Store engine together with Module to mitigate memory increase issue (backport #1982)
Store engine together with Module to mitigate memory increase issue (backport #1982)
Closes #1978