I have been trying to understand
lscpu
's output and came across several threads dedicated to concepts of CPUs, physical cores, and threads. Based on those threads, to get the total number of CPUs (logical units), you would do the following: Thread(s) per core
x Core(s) per socket
x Socket(s)
.
Given the partial output from my machine shown below, I would expect CPU(s)
to be 28, but it is listed as 20.
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 46 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 20
On-line CPU(s) list: 0-19
Vendor ID: GenuineIntel
Model name: 12th Gen Intel(R) Core(TM) i9-12900H
CPU family: 6
Model: 154
Thread(s) per core: 2
Core(s) per socket: 14
Socket(s): 1
Can someone help me to understand the apparent disconnect between my expectation for the CPU count and what lscpu
actually produced in this instance? I can't seem to find similar cases.
Asked by Jason
(13 rep)
Jan 26, 2024, 05:47 PM
Last activity: Jan 26, 2024, 07:24 PM
Last activity: Jan 26, 2024, 07:24 PM