CentOS 7.x nproc

From Notes_Wiki
Revision as of 11:15, 27 January 2019 by Saurabh (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<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 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.