Stream: git-wasmtime

Topic: wasmtime / PR #12772 Include core instance sizes in compo...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 00:04):

posborne opened PR #12772 from posborne:include-core-instance-size-in-compennt-instance-limits to bytecodealliance:main:

There exist several knobs for limiting the memory that might be consumed for metadata for components. For core module instances within a component, the two that previously existed to control metadata allocations have been:

These allow for an embedder to set an upper bound on memory used by a component's instances to A * B. This value could be quite large for some systems and it would be nice to be able to set a cap on the total memory that might be used for metadata across all instances while still allowing for a greater number of instances with the potential for a subset of those instances to be relatively large.

To allow for aggregate control over memory used within the runtime for componenets, the existing max_component_instance_size limit is extended to consider both the VMComponentCtx size as well as the aggregate size of all core instances in the component.

The original changeset which introduced a separate config knob was #12768 which this replaces.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 00:04):

posborne requested wasmtime-core-reviewers for a review on PR #12772.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 00:04):

posborne requested alexcrichton for a review on PR #12772.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 04:21):

github-actions[bot] added the label wasmtime:api on PR #12772.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 04:21):

github-actions[bot] added the label wasmtime:config on PR #12772.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 04:23):

github-actions[bot] commented on PR #12772:

Label Messager: wasmtime:config

It looks like you are changing Wasmtime's configuration options. Make sure to
complete this check list:

[fuzzing-config]: https://github.com/bytecodealliance/wasmtime/blob/ca0e8d0a1d8cefc0496dba2f77a670571d8fdcab/crates/fuzzing/src/generators.rs#L182-L194
[fuzzing-docs]: https://docs.wasmtime.dev/contributing-fuzzing.html


<details>

To modify this label's message, edit the <code>.github/label-messager/wasmtime-config.md</code> file.

To add new label messages or remove existing label messages, edit the
<code>.github/label-messager.json</code> configuration file.

Learn more.

</details>

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 14:22):

alexcrichton submitted PR review:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 15:52):

posborne edited a comment on PR #12772:

Label Messager: wasmtime:config

It looks like you are changing Wasmtime's configuration options. Make sure to
complete this check list:

[fuzzing-config]: https://github.com/bytecodealliance/wasmtime/blob/ca0e8d0a1d8cefc0496dba2f77a670571d8fdcab/crates/fuzzing/src/generators.rs#L182-L194
[fuzzing-docs]: https://docs.wasmtime.dev/contributing-fuzzing.html


<details>

To modify this label's message, edit the <code>.github/label-messager/wasmtime-config.md</code> file.

To add new label messages or remove existing label messages, edit the
<code>.github/label-messager.json</code> configuration file.

Learn more.

</details>

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 16:04):

posborne updated PR #12772.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 18:02):

alexcrichton added PR #12772 Include core instance sizes in component_instance_size limit to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 18:26):

github-merge-queue[bot] removed PR #12772 Include core instance sizes in component_instance_size limit from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 20:06):

posborne updated PR #12772.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 20:21):

alexcrichton added PR #12772 Include core instance sizes in component_instance_size limit to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 20:45):

alexcrichton removed PR #12772 Include core instance sizes in component_instance_size limit from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2026 at 20:45):

alexcrichton merged PR #12772.


Last updated: Mar 23 2026 at 16:19 UTC