测试使用环境:
服务器:Dell R710 CPU型号 物理CPU颗数 内存大小和数量

[root@localhost ~]# cat /proc/cpuinfo | grep name | cut -d: -f2 | uniq -c
16  Intel(R) Xeon(R) CPU           L5520  @ 2.27GHz

[root@localhost ~]# cat /proc/cpuinfo | grep physical | sort -n | uniq -c
16 address sizes   : 40 bits physical, 48 bits virtual
8 physical id     : 0
8 physical id     : 1
##说明两颗物理cpu

内存检测

[root@localhost ~]# dmidecode|grep -A5 "Memory Device"|grep Size | cut -d: -f2 | sort -n | uniq -c
10  No Module Installed
8  4096 MB

##接了8根内存,每根内存大小4G

##还有相关命令

##dmidecode  | grep -A16 "Memory Device" | grep Speed | sort -n | uniq -c

最大支持内存

[root@localhost ~]# dmidecode|grep  'Maximum Capacity'

        Maximum Capacity: 288 GB

操作系统Centos 6.4 64位系统

[root@localhost ~]# cat /etc/issue

CentOS release 6.4 (Final)

Kernel \r on an \m
一、检查CPU是否支持虚拟化。(在主板BIOS中开启CPU的VirtualizationTechnology)

[root@localhost ~]# uname -a

Linux localhost.localdomain 2.6.32-358.2.1.el6.x86_64 #1 SMP Wed Mar 13 00:26:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# grep -E -o 'vmx|svm' /proc/cpuinfo

vmx
文档更新时间: 2020-03-20 05:08   作者:月影鹏鹏