2.4.13. lscpu#
lscpu displays CPU architecture, core, and thread information.
2.4.13.1. Common lscpu usage#
On Linux, show the number of cores and threads:
lscpu | grep -E 'Core|Thread'
core: physical processing unit
thread: logical execution path
can use simultaneous multithreading (SMT)
Intel calls SMT “hyper-threading,” allowing each core to run 2 threads concurrently