Before the performance test, you need to determine the server specifications. Below is a summary of how to view Linux CPU and other specifications
1. View the number of server CPUs
1) View the number of physical CPUs:
Cat/proc/cpuinfo |grep "Physical id" |sort |uniq|wc-l
4
2) View each CPU with several cores
Cat/proc/cpuinfo |grep "Cores" |uniq
4
3) View the number of logical CPUs:
Cat/proc/cpuinfo |grep "Processor" |wc-l 16
I this server should have 4 physical CPUs, each physical CPU has 4 cores, does not support hyper-threading, so a total of 16 logical CPUs.
Description: Under Linux, the CPU hardware information is stored in the/proc/cpuinfo file. A physical CPU can have multiple cores (core), plus Hyper-Threading Technology (HT), which can logically have multiple CPUs. Do not turn on Hyper-Threading case: Number of logical CPUs = number of physical CPUs * number of cores. When Hyper-threading is turned on: number of logical CPUs = number of physical CPUs * Number of cores * *. Note: The CPU viewed with the top command under Linux is the number of logical CPUs.
To view CPU frequency:
Cat/proc/cpuinfo |grep Mhz|uniq
2. View Memory Specifications
[Email protected] logs]# free-m
Total used free shared buff/cache available
mem:32011 29460 2282 23 268 2117
swap:32767 7603 25164
Available memory =free+buff+cached =2282+268+2117=4667m=4.5g
Swap is a swap partition, typically large in memory and set when the OS is installed.
Linux Server Specs View