gear icon indicating copy to clipboard operation
gear copied to clipboard

Expand the memory available for programs to more than 32 Mbytes

Open shamilsan opened this issue 3 years ago • 2 comments

Problem to Solve

Currently, the maximum available memory for programs (both statical and dynamic) is limited to 512 Wasm pages (64 Kbytes per page), equal to 32 Mbytes.

Consider increasing the upper limit.

Possible Solution

Changing max buffer limit both in our Substrate fork and the core executor.

Notes

This limitation is based on the Subtrate's one, so this expansion will not work in the parachain.

shamilsan avatar Nov 23 '22 20:11 shamilsan

Increasing this limit may be fatal if we somewhere run into single allocation >=512 wasm pages on substrate side

breathx avatar Nov 25 '22 00:11 breathx

You can as well limit single allocation size, not the whole memory size

NikVolf avatar Apr 07 '23 11:04 NikVolf