Show available CPU Sockets and Cores in Linux System
shows the number of processing units available
nprocCPU architecture information lscpuReference:http://www.cyberciti.biz/faq/linux-get-number-of-cpus-core-command/\Some more commands:cat /proc/cpuinfo | grep processor cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
cat /proc/cpuinfo | egrep "core id|physical id" cat /proc/cpuinfo | egrep "core id|physical id" | tr -d "\n" | sed s/ph ysic al/\ \nph ysic al/g | grep -v ^$ | sort | uniq | wc -l cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l Reference:https://www.ibm.com/developerworks/community/blogs/brian/entry/linux_show_the_number_of_cpu_cores_on_your_system17?lang=en
Some more references:
https://access.redhat.com/site/discussions/480953
No comments:
Post a Comment