How to check number of “Physical CPU and core”?

number of physical cpu: "psrinfo -p"
number of cores: "kstat cpu_info|grep core_id|sort -u|wc -l"
number of threads: "psrinfo -pv"
Code:
# echo "`psrinfo -p` socket(s)"
2 socket(s)
Code:
# echo "`kstat -m cpu_info|grep -w core_id|uniq|wc -l` core(s) "
8 core(s)
Code:
# echo "`psrinfo|wc -l` logical (virtual) processor(s)"
64 logical (virtual) processor(s)

so (core(s) with 8 thread)

eg.

root@t31 # echo “`psrinfo -p` socket(s)”
1 socket(s)
root@t31 #  echo “`kstat -m cpu_info|grep -w core_id|uniq|wc -l` core(s) “
16 core(s)
root@t31 # echo “`psrinfo|wc -l` logical (virtual) processor(s)”
128 logical (virtual) processor(s)
root@t31 #

Incoming search terms:

  • echo `psrinfo -p` socket(s)
  • determine number physical cpu sun t3
This entry was posted in Solaris. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


six + 6 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>