-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
wasmtime serve
can't run components requiring >10MB of memory by default
#8846
Comments
See also #8504 and bytecodealliance/componentize-py#94 |
Also, (mainly to help search engines find this issue) this is the kind of error message you get: |
Can you test whether |
Maybe that's new on |
I think that might be Wasmtime 21+, what version do you have for that? |
Sorry, just edited the comment; it's 21.0.1 |
Oh sorry, for some reason I had Wasmtime 22 installed instead of the 21 version, which explains this! |
This commit raises the default setting of `max_memory_size` in the pooling allocator from 10M to 4G. This won't actually impact the virtual memory reserved in the pooling allocator because we already reserved 6G of virtual memory for each linear memory this instead allows access to all of it by default. This matches the default behavior of Wasmtime for the non-pooling allocator which is to not artificially limit memory by default. The main impact of this setting is that the memory-protection-keys feature, which is disabled by default, will have no effect by default unless `max_memory_size` is also configured to something smaller than 4G. The documentation has been updated to this effect. Closes bytecodealliance#8846
This commit raises the default setting of `max_memory_size` in the pooling allocator from 10M to 4G. This won't actually impact the virtual memory reserved in the pooling allocator because we already reserved 6G of virtual memory for each linear memory this instead allows access to all of it by default. This matches the default behavior of Wasmtime for the non-pooling allocator which is to not artificially limit memory by default. The main impact of this setting is that the memory-protection-keys feature, which is disabled by default, will have no effect by default unless `max_memory_size` is also configured to something smaller than 4G. The documentation has been updated to this effect. Closes #8846
Since
wasmtime serve
was switched to using the pooling allocator, which defaults to a memory limit of 10MB, components built with e.g.componentize-py
orcomponentize-dotnet
will no longer run by default. Also, since there is currently no CLI option to override that memory limit, the only workaround is to disable the pooling allocator entirely usingwasmtime serve -O pooling-allocator=n
.I propose that we address this with the following changes:
The text was updated successfully, but these errors were encountered: