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

1.9.2 go build takes up 100% of CPU while taking longer to build than 1.9.1 #22515

Closed
benbot opened this issue Oct 31, 2017 · 3 comments
Closed

Comments

@benbot
Copy link

benbot commented Oct 31, 2017

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.9.2

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

Darwin amd64

What did you do?

run go build
If possible, provide a recipe for reproducing the error.
run go build

What did you expect to see?

Go build not take up 100% of my CPU while being much slower than builds on 1.9.1

What did you see instead?

Go taking up 100% of my CPU while being much slower than builds on 1.9.1

Build times are anywhere from 3-5x longer than 1.9.1 and grinds my computer to a halt by taking up 100% of the CPU

@davecheney
Copy link
Contributor

davecheney commented Oct 31, 2017 via email

@cespare
Copy link
Contributor

cespare commented Oct 31, 2017

I strongly suspect that you're rebuilding a lot of dependencies every time. Please use go build -i or go install to ensure they're installed, then compare again.

(Is there a wiki page we can link to for this FAQ? I wasn't able to find one.)

@benbot
Copy link
Author

benbot commented Oct 31, 2017

@cespare was right go build -I fixed that.

I'll need to keep that in mind next time I bump my go version

@benbot benbot closed this as completed Oct 31, 2017
@golang golang locked and limited conversation to collaborators Oct 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants