Total Pageviews

DETERMINE CPU CORES IN LINUX




There are different types of cores, namely
1-Single core
2-Dual core
4-Quad core
6-Hex core
8-Oct core

   # cat /proc/cpuinfo
    # grep cores /proc/cpuinfo
    # grep “core id” /proc/cpuinfo
    # grep -i core /proc/cpuinfo

example for finding physical cores, here each CPU holds 6 cores(HEXA)

[root@server1 ~]# cat /proc/cpuinfo | egrep "processor|physical\ id|core\ id|cpu\ cores"
processor       : 0
physical id     : 0
core id         : 0
cpu cores       : 6

psrinfo -v :for Solaris


To find CPU Sockets


dmidecode|grep CPU

will display the number of CPU sockets

dmidecode|grep Populated

will display the populated sockets.

0 comments:

hits count
Database | Oracle PartnerNetwork Blog