1. View the number of physical CPUs
[[email protected] ~]# cat/proc/cpuinfo |grep "Physical id" |sort |uniq|wc-l
1
2. View the number of logical CPUs
[Email protected] ~]# cat/proc/cpuinfo |grep "Processor" |wc-l
4
3. View CPU is a few cores (that is, the number of cores)
[Email protected] ~]# cat/proc/cpuinfo |grep "Cores" |uniq
CPU Cores:4
4, check the CPU frequency
[Email protected] ~]# cat/proc/cpuinfo |grep Mhz|uniq
CPU mhz:2499.982
5. Current operating system kernel information
[Email protected] ~]# uname-a
Linux MysqlCluster01 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu June 21:14:45 UTC x86_64 x86_64 x86_64 gnu/linux
6. Current operating system release information
[Email protected] ~]# cat/etc/issue
CentOS Release 6.4 (Final)
Kernel \ r on an \m
7. Memory usage
[Email protected] ~]# free-m
Total used free shared buffers Cached
mem:7863 2738 5125 0 141 835
-/+ buffers/cache:1761 6102
swap:3967 0 3967
Other commands:
[Email protected] ~]# Cat/proc/cpuinfo | grep name | Cut-f2-d: | Uniq-c
4 AMD Opteron (tm) Processor 6380
See there are 8 logical CPUs and know the CPU model
[Email protected] ~]# getconf long_bit
64
Indicates that the current CPU is running in 64bit mode
[Email protected] ~]# Cat/proc/cpuinfo | grep Flags | grep ' LM ' | Wc-l
4
The result is greater than 0, indicating support for 64bit calculations. LM refers to long mode, which supports LM while 64bit
CentOS Viewing operating System information (important)