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

gccgo: compiling cmd/internal/obj/x86 on ppc64le takes 14.5GB of RAM and 20 minutes of CPU #35661

Open
mdempsky opened this issue Nov 18, 2019 · 0 comments
Milestone

Comments

@mdempsky
Copy link
Member

@mdempsky mdempsky commented Nov 18, 2019

Bootstrapping the golang.org Go distribution using this version of gccgo takes an excessive amount of time:

$ go version
go version go1.12.2 gccgo (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1) linux/ppc64le

Specifically, while compiling cmd/internal/obj/x86, go1 seems to take nearly 20 minutes and uses 14.5GB of RAM for the first 8.5 minutes (after that, it drops to 3GB of RAM). For comparison, make.bash in its entirety takes about 24 minutes of wall clock time and 33 minutes of CPU time.

It seems like the large arrays/slices in that package are hitting some super-linear complexity.

/cc @ianlancetaylor

@mdempsky mdempsky added this to the Gccgo milestone Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.