-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Executing unoptimized wasm file causes OOM #45480
Comments
Guess no one else is going to pick this up? I can't try myself right now but does it work with the |
node --jitless run.js
|
Failing with a 12 GB virtual memory limit isn't surprising. V8 allocates really large guard pages for performance reasons. See #45557 for a similar bug report. |
I look into the process status before it gets killed. VmRSS is huge. Is it the expected behavior?
It's quite weird that nodejs allocates too much memory after the wasm code is finished. I still think this hehavior may be a bug. |
That's indeed quite high. It could be the JS heap (not WASM), it maxes out at 1.4 GB unless you raise the limit. As a bit of expectation management: WASM is handled by V8, not node, so if there is a bug, you're going to have to report it upstream. With that out of the way, it'd be good to test WASM-related flags. See |
So the problem is in TurboFan. I have submitted a issue to v8: https://bugs.chromium.org/p/v8/issues/detail?id=13543 |
I'd include more details in the bug report if I were you, makes it more likely to get triaged quickly. I'll close out this bug report as there isn't anything for node to do at this time. |
Version
v19.1.0
Platform
Linux Nugine-Ub2 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
Dependencies:
I uploaded artifacts here for convenience: wbg_tmp.tar.gz
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
It should work without OOM.
What do you see instead?
Nodejs allocates too much memory until OOM.
Additional information
See Nugine/simd@48bd619#comments
The text was updated successfully, but these errors were encountered: