This message was deleted.
# community-support
s
This message was deleted.
v
Are you sure the Windows and Linux machine have the same amount of cores?
s
You mean "amount of"? Yes, it's exactly the same PC, dual-booted once on Windows, once on Linux.
v
Yes, of course "amount of", auto-correction. 😄
s
So, this is how it looks on Windows, apparently 4 Threads being used:
And this is building the same on Linux on the same PC:
v
Ah, now that you show the concrete numbers I remember something that there was some problem with max 4 threads in some situations. Unfortunately I don't remember the exact details right now.
While it could of course also be that you limit the max workers using
<GRADLE_USER_HOME>/gradle.properties
Or an environment variable
What does a build scan say?
Also try printing
Runtime.getRuntime().availableProcessors()
s
Here's the build scan from Windows: https://scans.gradle.com/s/2zq5ugvdrypis
v
Hm, so it was not the core detection. :-/
And not a local setting
s
Is it maybe only a display thing? Like, as rendering to the console on Windows probably is not as fast as on Linux, only ever display 4 threads on the console, even if more are used?
v
Hm, was it maybe just a display error? At least according to timeline view all tasks were run in parallel
s
I just had the same thought, see above 🙂
v
Yep, doesn't answer whether it is intentional though.
s
And in any case it's misleading. Even if the threads display was capped, the console output should say so.
👍 1
Ha, when running Gradle on Windows in plain `cmd`instead of MinTTY that comes with Git Bash, I do see more threads being displayed!
Even under PowerShell or the new Windows terminal all threads are correctly rendered in the console...
v
Ah, yes, the thing I remembered was also about Git Bash
s
It's more MinTTY than Git Bash. As running Git Bash inside the new Windows terminal also gets the number of threads right.
v
Ah, yeah, good find. Probably onther report for core Gradle to add a hint if more work is done than displayed? Even if the height can be calculated it uses at most half of the screen so even there more work than displayed could happen.
s
👌 1
v
It's more MinTTY than Git Bash. As running Git Bash inside the new Windows terminal also gets the number of threads right.
Quite possible, in Git Bash within ConEmu I also get the workers displayed properly.