Stream: general

Topic: Wizer: max snapshot size?


view this post on Zulip Friday More (Jan 09 2025 at 01:11):

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?

view this post on Zulip Alex Crichton (Jan 09 2025 at 04:36):

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

view this post on Zulip Friday More (Jan 09 2025 at 07:18):

Thanks Alex - yeah, that's what I am wondering as well: does Wizer support the mem64 proposal

view this post on Zulip Friday More (Feb 05 2025 at 01:10):

Quick follow up on this thread:

  1. Anyone familiar with Wizer know if Wizer will support mem64?
  2. Is there a limit to how large Wasm code can be for Wasmtime to work with. E.g., can Wasmtime handle a 5 GB file?
    Thank you

view this post on Zulip Alex Crichton (Feb 05 2025 at 05:53):

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.

view this post on Zulip Friday More (Feb 05 2025 at 17:57):

Thanks Alex


Last updated: Feb 28 2025 at 03:10 UTC