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 15:22:00 UTC

[jira] [Closed] (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:all-tabpanel ]

Michael Osipov closed MNG-7174.
-------------------------------
    Fix Version/s:     (was: wontfix-candidate)
       Resolution: Not A Problem

> 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
>
> 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)