Skip to content
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

Memory usage of OTP-27 - OOM SIGKILL - insufficient swap space #8669

Closed
crownedgrouse opened this issue Jul 14, 2024 · 5 comments
Closed

Memory usage of OTP-27 - OOM SIGKILL - insufficient swap space #8669

crownedgrouse opened this issue Jul 14, 2024 · 5 comments
Labels
bug Issue is reported as a bug stalled waiting for input by the Erlang/OTP team team:VM Assigned to OTP team VM

Comments

@crownedgrouse
Copy link
Contributor

Describe the bug
A same code is compiling OK with 26.2 and fails due to OOM kill (exit 137) on 27.0.1 .
This ticket is mainly to inform community of such issue.

To Reproduce
Compile a big project with only 980 Mo Swap

Expected behavior
Inform users of minimal swap partition to use 27.0 safely.

Affected versions
27.0

Additional context
Issue disappear by adding 1 Go swap but is then full up to 1.8 Go (2 swap partitions).

@crownedgrouse crownedgrouse added the bug Issue is reported as a bug label Jul 14, 2024
@jhogberg jhogberg added team:VM Assigned to OTP team VM stalled waiting for input by the Erlang/OTP team labels Jul 15, 2024
@jhogberg
Copy link
Contributor

Thanks for your report! Unfortunately most of us are on vacation right now, we'll revisit this once we're back. :-)

@josevalim
Copy link
Contributor

I am afraid this will pretty much depend on the project? As the compiler changes between Erlang/OTP versions, it may change the amount of memory it requires. Even things like making the compiler faster can change the memory profile (it can now do more, in less time, allocating more memory). Other things like concurrency will affect it too (depending on the build tool you are using). I don't think the amount of memory used by the compiler was ever a guarantee of the compiler or the build tool.

@bjorng
Copy link
Contributor

bjorng commented Aug 1, 2024

Inform users of minimal swap partition to use 27.0 safely.

I don't see that this is practical. As @josevalim points out, it very much depends on the project. Therefore I will close this issue.

@bjorng bjorng closed this as completed Aug 1, 2024
@bjorng bjorng closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2024
@frej
Copy link
Contributor

frej commented Aug 1, 2024

Although if the compiler suddenly requires twice the amount of memory it could be worthwhile to report it. But for it to be actionable the report would have to be along the lines of "The attached module requires X of memory to compile with OTP-N, while in OTP-(N-1) it only required Y". The same applies to compilation speed.

@bjorng
Copy link
Contributor

bjorng commented Aug 1, 2024

Yes, as @frej said, we are interested in actionable bug reports of regressions in compilation speed or memory consumption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug stalled waiting for input by the Erlang/OTP team team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

5 participants