Difference between revisions of "CentOS 7.x nproc"
From Notes_Wiki
|  (Created page with "<yambe:breadcrumb self="nproc">CentOS_7.x_command_line_tools_and_utilities|Command line tools and utilities</yambe:breadcrumb> =CentOS 7.x nproc=  It is possible to see CPU in...") | m | ||
| Line 1: | Line 1: | ||
| [[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x command line tools and utilities|Command line tools and utilities]] > [[CentOS 7.x nproc]] | |||
| It is possible to see CPU information using: | It is possible to see CPU information using: | ||
| Line 14: | Line 13: | ||
| </pre> | </pre> | ||
| This will give value of <physical CPUs> x <cores per CPU> x <Threads per core> as a single number. | This will give value of <physical CPUs> x <cores per CPU> x <Threads per core> as a single number. | ||
| [[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x command line tools and utilities|Command line tools and utilities]] > [[CentOS 7.x nproc]] | |||
Latest revision as of 09:09, 25 August 2022
Home > CentOS > CentOS 7.x > Command line tools and utilities > CentOS 7.x nproc
It is possible to see CPU information using:
cat /proc/cpuinfo
In the output for every physical CPU (socket) there is a different physical ID. For every core in the processor there is a different core ID. If hyper-threading is enabled then each physical-ID / core-ID pair for hyper-threaded processor would appear twice.
To quickly determine no. of processor cores across all physical IDs, core IDs, threads, etc. use:
nproc
This will give value of <physical CPUs> x <cores per CPU> x <Threads per core> as a single number.
Home > CentOS > CentOS 7.x > Command line tools and utilities > CentOS 7.x nproc

