查physical processors數量
# kstat -m cpu_info | grep chip_id | sort -u | wc -l | tr -d ' '
查virtual processors數量
# kstat -m cpu_info | grep 'module: cpu_info' | sort -u | wc -l | tr -d ' '
查CPU的Core數
# kstat -m cpu_info | grep core_id | sort -u | wc -l | tr -d ' '
每顆CPU有多少Core:(Core)/(physical processors)
每個Core有多少的Threads:(virtual processors)/(Core)