Skip to main content

Posts

Showing posts from 2012

FIND CORES OF YOUR PROCESSOR (LINUX)

Find number of Physical Sockets with : cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l Find number of total cores cat /proc/cpuinfo | egrep "core id|physical id" | tr -d "\n" | sed s/physical/\\nphysical/g | grep -v ^$ | sort | uniq | wc -l and verify with cat /proc/cpuinfo or lscpu Architecture:          x86_64 CPU op-mode(s):        32-bit, 64-bit Byte Order:            Little Endian CPU(s):                16 On-line CPU(s) list:   0-15 Thread(s) per core:    2 Core(s) per socket:    4 CPU socket(s):         2 NUMA node(s):          2 Vendor ID:             G...