Sys Linux

From ElectroDragon
Revision as of 09:38, 1 December 2019 by Chao (talk | contribs) (Created page with "# 查看物理CPU个数 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l # 查看每个物理CPU中core的个数(即核数) cat /proc/cpuinfo| grep "cpu cores"| uniq...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. 查看物理CPU个数

cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l

  1. 查看每个物理CPU中core的个数(即核数)

cat /proc/cpuinfo| grep "cpu cores"| uniq

  1. 查看逻辑CPU的个数

cat /proc/cpuinfo| grep "processor"| wc -l