Re: physical cores - linux
Posted by ErmanArslansOracleBlog on
URL: http://erman-arslan-s-oracle-forum.114.s1.nabble.com/physical-cores-linux-tp7512p7513.html
Check /proc/cpuinfo
physical id there is the cpu.
core id there is the core.
you can derive the core count by checking the entries, which have the same physical id but different core id.
Check the distinct ones.. I mean if you have HT enabled, then you may see similar outputs for the same cores. So only take the distinct entries into consideration.
For example:
If you have only these entries below; it means you have 1 dual core cpu and that's it.
processor : 0
physical id : 0
core id : 0
processor : 1
physical id : 0
core id : 1