Why is Spark detecting 8 cores, when I only have 4?

≯℡__Kan透↙ 提交于 2019-12-25 07:13:54

问题


I have a Apache Spark 1.6.1 standalone cluster set on a single machine with the following specifications:

  • CPU: Core i7-4790 (# of cores: 4, # of threads: 8)
  • RAM: 16GB

I set nothing so Spark can take the default values, which for cores is "all the available cores", based on that, the question is:

Why is Spark detecting 8 cores, when I only have 4?


回答1:


I assume that setting all available cores means that Spark is also using Virtual cores

And since your CPU does support Hyperthreading it has 8 virtual cores available.

If you want to only use physical cores I assume there is a specific setting for that.



来源:https://stackoverflow.com/questions/37632396/why-is-spark-detecting-8-cores-when-i-only-have-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!