Stream: git-wasmtime

Topic: wasmtime / issue #5120 Change how components interact wit...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 14:49):

alexcrichton labeled issue #5120:

Currently the implementation of components in Wasmtime is naively integrated with core wasm, meaning that when using the pooling allocator each core wasm instance as part of a component will take up a separate slot on the pooling instance allocator. This goes against the high-level design of the pooling instance allocator and application design, however, where an "instance" typically corresponds to one slot and the resources in that slot are what's available for that single instance.

Instead I think a few changes to resource accounting should be made:

Overall the component instantiation process, when using the pooling instance allocator, will need to be significantly refactored to ensure that instantiation of a component will work with only one pooling allocator slot rather than the multiple that happens today with one per core wasm instance.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 14:49):

alexcrichton opened issue #5120:

Currently the implementation of components in Wasmtime is naively integrated with core wasm, meaning that when using the pooling allocator each core wasm instance as part of a component will take up a separate slot on the pooling instance allocator. This goes against the high-level design of the pooling instance allocator and application design, however, where an "instance" typically corresponds to one slot and the resources in that slot are what's available for that single instance.

Instead I think a few changes to resource accounting should be made:

Overall the component instantiation process, when using the pooling instance allocator, will need to be significantly refactored to ensure that instantiation of a component will work with only one pooling allocator slot rather than the multiple that happens today with one per core wasm instance.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 21 2023 at 15:57):

alexcrichton commented on issue #5120:

Addressed in https://github.com/bytecodealliance/wasmtime/pull/6835

view this post on Zulip Wasmtime GitHub notifications bot (Aug 21 2023 at 15:57):

alexcrichton closed issue #5120:

Currently the implementation of components in Wasmtime is naively integrated with core wasm, meaning that when using the pooling allocator each core wasm instance as part of a component will take up a separate slot on the pooling instance allocator. This goes against the high-level design of the pooling instance allocator and application design, however, where an "instance" typically corresponds to one slot and the resources in that slot are what's available for that single instance.

Instead I think a few changes to resource accounting should be made:

Overall the component instantiation process, when using the pooling instance allocator, will need to be significantly refactored to ensure that instantiation of a component will work with only one pooling allocator slot rather than the multiple that happens today with one per core wasm instance.


Last updated: Nov 22 2024 at 16:03 UTC