physical cores - linux

Posted by satish on
URL: http://erman-arslan-s-oracle-forum.114.s1.nabble.com/physical-cores-linux-tp7512.html

Dear Erman,

How could we identify the physical cores in a system when there are 2 sockets.When going to buy oracle licences,they have updates us to give the number of cores

Below shows 24

/u01/PROD/inst/apps/SSSEBSPR_ssstindcpodb02/logs/appl/conc/log > getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1
24

Below shows 6

/u01/PROD/inst/apps/SSSEBSPR_ssstindcpodb02/logs/appl/conc/log > grep '^core id' /proc/cpuinfo |sort -u|wc -l
6


What command will give us the number of cores when we have multiprocessor and more than 1 socket?

Thank you