-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Extreme cpu and memory usage #76
Comments
Fix Issue #76: Limit the number of goroutines
@phanirithvij The gup command was designed to create as many goroutines as the number of binaries existing in $GOBIN. Therefore, from Ver. 0.19.0, the upper limit of the number of goroutines created is set to the number of CPU cores. |
Thanks for the quick fix, I will test it and report back. |
Works! Hit 3GB ram usage max, 59°C (idle is 37°C), updated in 8m20s |
Gup updates all packages at once which when there are many (eg ~70 in my case) takes up all the ram 8GB and all cores are at 100% at 89°C. As it spawns ~1900 threads. Thus it is unusable and I had to force quit linux.
Maybe limit it to the number of cores like
make -j8
. i.e. provide a-j
cli arg for people who need it. And set default value to no. of cores.The text was updated successfully, but these errors were encountered: