-
Notifications
You must be signed in to change notification settings - Fork 813
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
Remove org.gradle.parallel=true from gradle.properties #740
Comments
This is extremely curious, as this is the first project that I participate in that bogs developer machine down. I really would like to understand why is this happening. Without |
Same as @iNikem I've dealt with a couple of large Gradle projects before and parallel has never brought my system down like this one does. I suspect something wrong with our build - I have 4 hyperthread cores so I'd expect either 4 or 8 parallel tasks given the default is supposed to be num CPUs, but this build has 12 parallel tasks on my computer. |
Randomly noticed today, the max workers does seem to be the correct 8 during initial compilation tests. It's only as tests start to run that it adds more workers for some reason. Never seen that o_O |
Also noticed that it always adds 4 extra workers. |
With the |
@open-telemetry/java-instrumentation-approvers Please vote 👍 or 👎 for this proposal. |
I'm neutral TBH - both non-parallel and parallel without max-workers seem too slow for builds in general. Anyone with friends at Gradle to backchannel my gradle/gradle#14224? :) |
How about adding this to
under the assumption that most dev machines have 4+ cores. |
I am Ok both with the original Trask's idea of removing and with new idea of replacing with max workers. Both can be overridden locally. |
I support setting the default max instead of removing the parallel setting. I would propose 3/4 workers though with the understanding that we do a fair bit of blocking in our tests, so a small amount of over provisioning is probably fine. |
@trask doesn't that show good execution? I assume it would be much less utilized without parallel enabled. |
it would be good if I wasn't trying to do anything else on my machine at the same time, it took 15 seconds just to open screen capture tool to get that picture 😭 |
Currently we have
org.gradle.parallel=true
specified in ourgradle.properties
. This makes my machine grind to a halt during the builds. I can fix this by addingorg.gradle.workers.max
to my~/.gradle/gradle.properties
, but I'm not sure thatorg.gradle.parallel=true
provides the best new contributor experience.The text was updated successfully, but these errors were encountered: