查看集群配置信息

[前言]计算机科研工作常常需要运行一些实验程序,在与前人的实验对比时,需要说明自己的机器配置。这时,对于科研新手来说,第一件事就是查看实验平台的性能信息。本文简要说明查看Linux集群配置信息的命令。

需要查看的信息

一般情况下,在集群上跑的程序,可能是多个线程,甚至是在多台集群上执行的MPI并行程序。这需要我们了解CPU的配置情况;程序运行时,需要使用内存(Memory),内存情况也需要全面了解;硬盘(hard disk drive,HDD)也需要关注。

那么在Linux集群上,如何查看CPU、内存、硬盘的配置呢?

查看的命令

CPU配置

lscpu 命令,查看的是cpu的统计信息.

ben@522-1-S904-1:~$ lscpu 
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                56    #总的CPU核心数
On-line CPU(s) list:   0-55
Thread(s) per core:    2
Core(s) per socket:    14    #一个处理器上多少个核
Socket(s):             2    #主板上有多少个处理插槽,即有多少个处理器
NUMA node(s):          2    
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 63
Stepping:              2
CPU MHz:               1204.140
BogoMIPS:              4001.57
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              35840K
NUMA node0 CPU(s):     0-13,28-41    
NUMA node1 CPU(s):     14-27,42-55

参考:NUMA概述 处理器CPU概念及CPU多线程 Linux下查看CPU信息[/proc/cpuinfo]

查看CPU信息

Linux系统中,提供了proc文件显示系统的软硬件信息。如果想了解系统中CPU的提供商和相关配置信息,则可以通过/proc/cpuinfo文件得到。

cat /proc/cpuinfo
ben@522-1-S904-1:~$ cat /proc/cpuinfo 
processor	: 0    #系统中逻辑处理核的编号, 第一个processor的编号为0
vendor_id	: GenuineIntel    #CPU制造商
cpu family	: 6    #CPU产品系列代号
model		: 63    #CPU属于其系列中的哪一代的代号
model name	: Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz    #CPU的名字及其编号、CPU主频
stepping	: 2
microcode	: 0x2d
cpu MHz		: 1200.000    #CPU的实际使用主频
cache size	: 35840 KB    #CPU二级缓存大小
physical id	: 0    #物理封装的处理器的id
siblings	: 28    #位于相同物理封装的处理器中的 逻辑处理器的数量
core id		: 0    #位于相同物理封装的处理器中的 core的id
cpu cores	: 14   #位于相同物理封装的处理器中的 core的数量
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 15
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer xsave avx f16c rdrand lahf_lm abm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc
bugs		:
bogomips	: 4000.18
clflush size	: 64
cache_alignment	: 64
address sizes	: 46 bits physical, 48 bits virtual
power management:

…… ……

processor	: 55    #系统中逻辑处理核的编号, 第一个processor的编号为55;系统总共56个处理器
vendor_id	: GenuineIntel
cpu family	: 6
model		: 63
model name	: Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
stepping	: 2
microcode	: 0x2d
cpu MHz		: 1208.984
cache size	: 35840 KB
physical id	: 1
siblings	: 28
core id		: 14
cpu cores	: 14
apicid		: 61
initial apicid	: 61
fpu		: yes
fpu_exception	: yes
cpuid level	: 15
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer xsave avx f16c rdrand lahf_lm abm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc
bugs		:
bogomips	: 4001.57
clflush size	: 64
cache_alignment	: 64
address sizes	: 46 bits physical, 48 bits virtual
power management:

参考:linux /proc/cpuinfo文件分析Linux下查看系统配置Linux查看CPU信息详解查看硬件配置命令(ubuntu示例)






  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值