Getting the CPU core thread count in Solaris
How to get the CPU/core and thread count in Solaris. #!/bin/bash nproc=`(/usr/bin/kstat -m cpu_info | grep chip_id | sort -u | wc -l | tr -d ‘ ‘)` vproc=`(/usr/bin/kstat -m cpu_info | grep ‘module: cpu_info’ | sort -u | wc -l | tr -d ‘ ‘)` ncore=`(/usr/bin/kstat -m cpu_info | grep core_id | sort -u …