CPU, memory, disk, IO stream query

CPU, memory, disk, IO stream query

View CPU Information

Nuclear Nuclear = Total number of the physical CPU number X every single physical CPU
total number of logical CPU = CPU number X of physical particles per physical CPU core number X hyperthreads

View the number of physical CPU

cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l

See core in each physical CPU number (i.e., of cores)

cat /proc/cpuinfo| grep "cpu cores"| uniq

See logical CPU number

cat /proc/cpuinfo| grep "processor"| wc -l

View CPU information (model)

cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

View memory information

cat /proc/meminfo

View disk information

fdisk -l

View disk memory information

df -h

Check the performance of disk IO

iostat -x 10 
Published 23 original articles · won praise 0 · Views 1447

Guess you like

Origin blog.csdn.net/weixin_45775343/article/details/102716721