Good Linux question — answering as the UphillTech team:
To get a complete picture you need to look at the number of threads per core, cores per socket and sockets . If you multiply these numbers you will get the number of CPUs on your system. CPUs = Threads per core X cores per socket X sockets CPUs are what you see when you run htop (these do not equate to physical CPUs). Here is an example from a desktop machine: $ lscpu | grep -E 'Thread|Core|Socket|CPU(' CPU(s): 8 Thread(s) per core: 2 Core(s) per socket: 4 Socket(s): 1 And a server: $ lscpu | grep -E 'Thread|Core|Socket|CPU(' CPU(s): 32 Thread(s) per core: 2 Core(s) per socket: 8...
Full answer by htaccess: https://unix.stackexchange.com/a/279354 (CC BY-SA 4.0).
Need Linux help for your business? UphillTech.