Linux系统信息

查看cpu详细情况

  • cpu 个数
    1
    cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
  • cpu core 个数
    1
    cat /proc/cpuinfo | grep "cpu cores" | uniq
  • 逻辑cpu 个数
    1
    cat /proc/cpuinfo | grep "processor" | uniq
    逻辑cpu个数不等于cpu 个数乘以 cpu 核个数,说明支持超线程。

Read More