Stream: wasmtime

Topic: Pooling allocator current instance count


view this post on Zulip Lann Martin (Oct 24 2023 at 17:06):

Is it possible to get the current instance count as it applies to PoolingAllocationConfig::total_component_instances? It would be nice to be able to produce backpressure before constructing a Store and associated data when instantiation is going to fail.

view this post on Zulip Lann Martin (Oct 24 2023 at 17:08):

I suppose I have rubber-ducked myself into realizing that we can just track the instance count in parallel...

view this post on Zulip Lann Martin (Oct 24 2023 at 17:09):

(though that would require API changes on our side to track Instance drops)

view this post on Zulip Alex Crichton (Oct 24 2023 at 17:10):

Wasmtime does track this internally yeah but doesn't expose it externally. Adding a method to do that I think would be reasonable though

view this post on Zulip Lann Martin (Oct 24 2023 at 17:14):

I guess for precise accounting you'd also need to know the number of core instances in a component as well

view this post on Zulip Lann Martin (Oct 24 2023 at 17:14):

Do child components count against the component instance limit?

view this post on Zulip Alex Crichton (Oct 24 2023 at 17:35):

I don't believe so but I would need to double-check

view this post on Zulip Alex Crichton (Oct 24 2023 at 17:35):

"IR-wise" child components are compiled away in a sense


Last updated: Dec 23 2024 at 14:03 UTC