查看逻辑cpu个数:cat /proc/cpuinfo | grep "processor" | wc -l

查看物理cpu个数:cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l

查看每个物理cpu的核数cores:cat /proc/cpuinfo | grep "cpu cores"

如果所有物理cpu的cores个数加起来小于逻辑cpu的个数,则该cpu使用了超线程技术。查看每个物理cpu中逻辑cpu的个数:cat /proc/cpuinfo | grep "siblings"

相关文章:

  • 2022-12-23
  • 2021-06-20
  • 2021-10-30
  • 2018-07-12
猜你喜欢
  • 2022-12-23
  • 2022-01-08
  • 2022-01-08
  • 2021-06-23
  • 2021-07-25
  • 2022-12-23
相关资源
相似解决方案