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
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@mdempsky
Copy link
Member

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 the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Nov 18, 2019
@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
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

1 participant