You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/06/15 10:56:00 UTC
[jira] [Commented] (MNG-7174) Parallel builds on macos get the
thread count wrong
[ https://issues.apache.org/jira/browse/MNG-7174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17363571#comment-17363571 ]
Michael Osipov commented on MNG-7174:
-------------------------------------
There is absolutely nothing we can do, the value comes from here https://github.com/apache/maven/blob/3e917677e484067b853eaa4a6de44ebcf5a988de/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java#L1692.
> Parallel builds on macos get the thread count wrong
> ---------------------------------------------------
>
> Key: MNG-7174
> URL: https://issues.apache.org/jira/browse/MNG-7174
> Project: Maven
> Issue Type: Bug
> Components: Performance
> Affects Versions: 3.6.3, 3.8.1
> Environment: macos Big Sur
> java 8 and 11
> Reporter: Sander Verbruggen
> Priority: Major
> Fix For: wontfix-candidate
>
>
> When supplying -T1C to do a parallel build on macos, maven counts the _logical_ cores, not the _physical_ ones. This results in the system being overloaded and less responsive (twice the load it can handle).
> h2. Steps to reproduce
> {{sysctl -a|grep 'cpu.thread_count|cpu.core_count'}} gives this output on my machine:
> {{machdep.cpu.core_count: 4}}
> {{ machdep.cpu.thread_count: 8}}
>
> Starting a maven session with -T1C shows maven is using 8 threads instead of the expected 4:
> {{[INFO] Using the MultiThreadedBuilder implementation with a thread count of 8}}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)