Linux cpu processor cores and threads
Fri, 11/12/2010 - 12:26 — sandip/proc/cpuinfo has the info you need to identify the number of processors, cores and threads.
To get the total number of processors/cpu cores:
grep -c processor /proc/cpuinfoTotal number of physical cpus:
grep "physical id" /proc/cpuinfo | sort -u | wc -lNumber of cores per cpu:
grep "cores" /proc/cpuinfo | sort -uTo check if hyperthreading is enabled:
grep "cores\|siblings" /proc/cpuinfo | sort -uIf siblings is a multiple of cores then hyperthreading is enabled.
Determine cpu bit
Sat, 07/04/2009 - 19:18 — sandipYou can try this to find out if your CPU/Processor is 32 bit or 64 bit:
cat /proc/cpuinfo | grep flags | grep lmlm means Long Mode = 64 bit CPU
Also:
getconf LONG_BITShould display 32 or 64.
- sandip's blog
- Login or register to post comments
- Read more