-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: run out of memory during -N -l compilation #45897
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
Comments
Can you please check dmesg and post the entire output of the OOM killer. Thank you |
5.2gb rss does seem excessive. |
Likely this is compiling Probably a dup of #41058 . Looks like lots of time+space spent in regalloc. The liveness maps get really big. (~30K blocks, ~5K live values per block.) Maybe there's something we could do here. Turn on some processing that's normally off with |
Looks like the
One for each allocation in the map literal (the code in question allocates a |
Change https://golang.org/cl/316369 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
main.go
go.mod
build main.go with gcflags
all=-N -l
What did you expect to see?
Successfully built.
What did you see instead?
I notice memory have ran out, and I have 10GB free memory before building.
The text was updated successfully, but these errors were encountered: