首页 > 系统 > Linux > 正文

Linux服务器基本信息这么查看?

2024-08-28 00:01:22
字体:
来源:转载
供稿:网友
  Linux服务器基本信息这么查看?需要获取CPU的详细情况:
复制代码:
[root@VM_41_84_centos ~]# cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 63
model name    : Intel(R) Xeon(R) CPU E5-26xx v3
stepping    : 2
microcode    : 1
cpu MHz        : 2294.686
cache size    : 4096 KB
physical id    : 0
siblings    : 1
core id        : 0
cpu cores    : 1
apicid        : 0
initial apicid    : 0
fpu        : yes
fpu_exception    : yes
cpuid level    : 13
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc up rep_good unfair_spinlock pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm xsaveopt
bogomips    : 4589.37
clflush size    : 64
cache_alignment    : 64
address sizes    : 40 bits physical, 48 bits virtual
power management:
判断依据:
1、具有相同coreid的CPU是同一个core的超线程
2、具有相同"physicalid"的CPU是同一个CPU封装的线程或核心
3、a.显示物理CPU个数
4、cat/proc/cpuinfo|grep"physicalid"|sort|uniq|wc-l
5、b.显示每个物理CPU的个数(核数)
6、cat/proc/cpuinfo|grep"cpucores"|uniq
7、c.显示逻辑CPU个数
8、cat/proc/cpuinfo|grep"processor"|wc-l
9、理论上不使用超线程技术的前提下有如下结论:
10、物理CPU个数*核数=逻辑CPU个数
11、配置服务器的应用时,以逻辑CPU个数为准

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表