Why does Dagr use the physical processor count instead of logical for Macs only?
clintval opened this issue · 1 comments
clintval commented
On my MacBook Pro with hyper-threading enabled I have 8 physical cores yet 16 addressable cores.
❯ sysctl -n hw.physicalcpu
8
❯ sysctl -n hw.logicalcpu
16
dagr/core/src/main/scala/dagr/core/execsystem/Resource.scala
Lines 33 to 38 in e2a634a
I may be under-utilizing my local compute resources if capped to 8 cores instead of the full 16. Here's a screenshot of when I ask Dagr to run a task with the maximum allowed system cores:
Since hyper-threading is not unique to Macs, I am wondering why this design decision was made.