Jump to content

Cheatsheet: Difference between revisions

Line 863:
 
;CPU
 
* CPU Info
lscpu
lshw
nproc
sudo dmidecode -t 4
cpuid
cat /proc/cpuinfo
cat /proc/cpuinfo | grep processor | wc -l
 
*The number of processors shown by /proc/cpuinfo might not be the actual number of cores on the processor.
For example a processor with 2 cores and hyperthreading would be reported as a processor with 4 cores.
cat /proc/cpuinfo | grep 'core id'
core id : 0
core id : 2
core id : 1
core id : 3
 
So there are 4 different core ids. This indicates that there are 4 actual cores.
 
 
 
 
;Memory
Cookies help us deliver our services. By using our services, you agree to our use of cookies.