25 January 2011

LINUX - Determine number of CPU cores

# cat /proc/cpuinfo | egrep “physical\ id|core\ id”




physical id : 0
core id : 1
cpu cores : 2

If you have two CPUs in cpuinfo with the same physical id and core id, than – hyperthreading! When you have all CPUs with different physical ids, than you have SMP, and when you have CPUs with one physical id and different core ids – you have one multicore CPU. And so on…

No comments:

APACHE - failed to start

[On] Red Hat Enterprise Linux Server release 7.4 (Maipo) Apache was not running and attempt to start the httpd service failed. The natural t...