Showing posts with label CPU. Show all posts
Showing posts with label CPU. Show all posts

Tuesday, February 8, 2011

Find physical processor, cores and virtual processors in Solaris

  1. To get  number of physical processors
    • psrinfo -p
  2. To get info about all virtual processors  (number of cores * number of threads per core * no of physical processor)
    • psrinfo
  3. To get number of virtual processor per physical processor
    • psrinfo -pv
  4. To get number of cores per physical processor
    • #  kstat cpu_info|grep core_id|uniq  | wc -l
  5. To get the number of threads per physical processor
    • Divide output of 3/output of 4
  • To disable range of CPUS
    • psradm -f 20-63
  • To enable range of CPUS
    • psradm -n 20-63