I have had good luck using Wizer to snapshot memory state into new Wasm code. Is there an upper limit to how much memory can be snapshotted? We would eventually want to use mem64 to work with Wasm that deals with >4GiB memory. Will Wizer work with mem64?
Wizer will be limited by the size of memory itself, so for 32-bit memories it's not possible to have a larger-than-4G image. That only starts to be possible with 64-bit memories, which I'm not sure if wizer supports yet
Thanks Alex - yeah, that's what I am wondering as well: does Wizer support the mem64 proposal
Quick follow up on this thread:
AFAIK no one's signed up to do memory64 yet, but I suspect that folks would be around to review such work if you're interested in making a pull request. I don't think it'd be too much work.
As for wasm limits, there's not really file size limits as much as there are wasm item limits (e.g. functions, globals, etc). I'd recommend feeding your 5G file into wasmtime and seeing what happens. I'm not aware of anyone else running files so large so you might run into bugs, but please feel free to file issues about them.
Thanks Alex
Last updated: Feb 28 2025 at 03:10 UTC