1、cpu
Linux environment:
# Total number of cores = number of physical CPUs X number of cores per physical CPU
# Total number of logical CPUs = number of physical CPUs X number of cores per physical CPU X number of hyperthreads
# View the number of physical CPUs
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
# View the number of cores in each physical CPU (ie, the number of cores)
cat /proc/cpuinfo| grep "cpu cores"| uniq
# View the number of logical CPUs
cat /proc/cpuinfo| grep "processor"| wc -l
#View CPU information (model)
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
Windows environment:
In Windows, enter "wmic" in the cmd command, and then enter "cpu get *" in the new window that appears to view the number of physical CPUs, CPU cores, and threads. in,
Name: Indicates the number of physical CPUs
NumberOfCores: Indicates the number of CPU cores
NumberOfLogicalProcessors: Indicates the number of CPU threads
2. Memory
Linux environment:
# cat /proc/meminfo
free -g
Windows environment:
You can directly view the windows properties
3. Storage
Linux environment:
df -h
Windows environment:
windows disk view