You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #6 (comment), we encountered OOM and suspected there was memory leak in the latest multi-threaded prover. It was worked around by increasing wasm memory to 4 GB.
Possible Cause of OOM
The single-threaded prover seems to have a similar memory usage as the multi-threaded prover, but it doesn't encounter an OOM. Thus, I suspect OOM might not result from a memory leak. It happens in multi-threaded prover just because we enable the rustflags atomics (required by wasm-bindgen-rayon) and max-memory is automatically set to 1 GB.
Actions
Confirm single-threaded and multi-threaded prover max-memory without setting it explicitly. If they are different, it's possible that OOM is just because multi-thread has a 1 GB max memory while single-threaded doesn't, and thus OOM is possibly not because of the memory leak
Using wasm-objdump, we can see there is a max set when using a multi-threaded prover. However, there isn't a maximum memory set when using a single-threaded prover. This could explain why we didn't encounter OOM in a single-threaded prover even if it uses more than 1 GB memory.
Multi-threaded (nightly + rustflags atomics)
max is set to 1 GB (1 GB = 16384 * 64 KB, 16384 pages and 64 KB per page).
What's wrong?
In #6 (comment), we encountered OOM and suspected there was memory leak in the latest multi-threaded prover. It was worked around by increasing wasm memory to 4 GB.
Possible Cause of OOM
The single-threaded prover seems to have a similar memory usage as the multi-threaded prover, but it doesn't encounter an OOM. Thus, I suspect OOM might not result from a memory leak. It happens in multi-threaded prover just because we enable the rustflags
atomics
(required by wasm-bindgen-rayon) andmax-memory
is automatically set to 1 GB.Actions
Resources
max-memory=1GB
whenatomics
is enabledThe text was updated successfully, but these errors were encountered: