i have a question about my actual number of cpus on my machine. Different methods give me different results...
htop
shows 4 cores working
lscpu | grep CPU\(s\):
shows 4
cat /proc/cpuinfo | grep processor
shows 4
cat /proc/cpuinfo | grep "cpu cores" | uniq
shows 2
sensors | grep Core
shows 2
i'm a bit lost...
EDIT:
cat /proc/cpuinfo | grep 'model name'
model name : Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
This has to do with the way CPU's are build today.
You have 1 hardware CPU which contains 2 cores which transmit their data on their own bus. Each core has 2 so called threads which can compute on their own, but share a bus to transmit their data. This is calle multithreading and is fairly common nowadays.
But Linux doesn't show this. Instead each thread is seen as a cpu core. So if you have a six or eight core server e.g. htop would show 12 or 16 single cores.
In your case you have a CPU with 2 cores and 4 threads in total.
Take a look again at your command (without uniq), it should show this information 4 times right?