wasm-filters icon indicating copy to clipboard operation
wasm-filters copied to clipboard

[Question] Is there a memory allocation limit within a WASM extension using Envoy (using V8 runtime)?

Open pranav-bhatt opened this issue 3 years ago • 2 comments

According to https://v8.dev/blog/4gb-wasm-memory, the v8 engine (used by envoy to run WASM filters) implements wasm32, which has 4gb as the total usable memory.

This however doesn't necessarily mean that memory allocation has a limit of 4gb. Is there any cap on how much memory can be allocated apart from the aforementioned hard limit? Any clarification would be much appreciated!

pranav-bhatt avatar Sep 08 '21 17:09 pranav-bhatt

I believe that 64bit support has been implemented, reference the following page to see that it "It provides no new instructions, but instead extends the currently existing instructions to allow 64-bit indexes."

https://github.com/WebAssembly/memory64/blob/main/proposals/memory64/Overview.md

b0id avatar Jan 02 '23 03:01 b0id

If this is satisfactory, I would like to close this issue.

b0id avatar Jan 02 '23 03:01 b0id