Replies: 1 comment 1 reply
-
Initial size and max size are not the same thing. Q1) I guess browser could do some mapping between real memory and the address space and that's why you see only 1GB at start. I don't know those browser implementation details. The underlying emscripten runtime could now address 4GB and we have open issue for that #58382 I'm not sure we are able to switch to 64bit address space.
I guess that the browsers would not like that either. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@pavelsavara First off, thanks for this PR!
My problem is I'm working on a huge app, and it can end up throwing out-of-memory exceptions on Windows OSs with low memory (8GB of RAM).
I did use this setting to set the initial memory as high as possible, since I would assume the out-of-memory could be because of a "grow" failure when the memory needs to increase.
Q1: How does the initial memory get allocated? Does it ask the OS for it, but not actually allocate it?
I've been setting this to 2GB from the get-go, and while the reported Total memory in JS is 2GB, I don't see that in Chrome -- the Chrome memory will start at roughly 1GB increase slowly to 2GB as my app uses more and more memory.
I'm not sure if this is how things are supposed to work.
Q2: What's the max size I can set?
I tried to set 3GB, and I got an error that the max size is not set or something.
Beta Was this translation helpful? Give feedback.
All reactions