# 檢視實體CPU個數cat /proc/cpuinfo | grep "physical id" | sort| uniq| wc -l

# 檢視每個實體CPU中core的個數(即核數)cat /proc/cpuinfo|grep "cpu cores"| uniq
# 檢視邏輯CPU的個數cat /proc/cpuinfo| grep"processor"| wc -l
檢視CPU資訊(型号)
cat /proc/uinfo | grep name | cut -f2 -d: | uniq -c
# 總核數 =實體CPU個數 X 每顆實體CPU的核數 =2*4=8
# 總邏輯CPU數=實體CPU個數 X 每顆實體CPU的核數 X 超線程數=2*4*2=16
(一個核心就是一個實體線程,英特爾有個超線程技術可以把一個實體線程模拟出兩個線程來用,充分發揮CPU性能。)