-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[browser] OutOfMemoryException after bad allocation ratio #108510
Comments
Tagging subscribers to 'arch-wasm': @lewing |
Tagging subscribers to this area: @BrzVlad |
The problem is allocation ratio. For each byte of managed memory, we allocate 2.2 bytes of WASM linear memory.
|
This is the GC log just before the crash on Net10. It shows that we are running out of 2GB address space after we allocated only
|
setting |
runtime/src/mono/mono/utils/mono-mmap-wasm.c Lines 161 to 162 in ba28992
Edited: runtime/src/mono/mono/sgen/sgen-los.c Line 317 in ba28992
And for objects bigger than 1MB it will go |
Or maybe I'm confused about it. I will continue tomorrow. |
@dlemstra does your application really allocate many arrays bigger than 64KB ? Or this is just synthetic example that demonstrates same symptoms ? |
Probably related #107215
Repro
I'm able to reproduce it on latest Net10 main, but customer is reporting similar issues on Net8.
The text was updated successfully, but these errors were encountered: