[ 
https://issues.apache.org/jira/browse/MNG-7174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sander Verbruggen updated MNG-7174:
-----------------------------------
    Description: 
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}}

 

  was:
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).

 

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

 

    Environment: 
macos Big Sur
java 8 and 11

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

Reply via email to