Monday 29 September 2014

Command to find out No. of CORE's in solaris

kstat cpu_info|grep core|awk '{print $2}'|sort|uniq|wc -l

# kstat -m cpu_info|grep core_id|awk ‘{print $2}’|uniq|wc -l
       8

So we get 8 cores. So far so good.  A few more commands will complete the picture.

#psrinfo -p
1-Physicall CPU
#psrinfo |wc -l
      64
So here is the complete picture, T5220, has one socket, 8 cores, 8 threads per core which equates to 64 virtual CPU’s.


echo "`kstat -m cpu_info|grep  chip_id|uniq|wc -l` core(s) "
echo "`psrinfo -p` socket(s)"

to check cpu core info

mpstat |wc -l and compare it with prtdiag CPu output
if it is same then it is single core

No comments:

Post a Comment