查看集群配置信息

您所在的位置:网站首页 查看集群资源使用情况 查看集群配置信息

查看集群配置信息

2024-07-12 17:15| 来源: 网络整理| 查看: 265

[前言]计算机科研工作常常需要运行一些实验程序,在与前人的实验对比时,需要说明自己的机器配置。这时,对于科研新手来说,第一件事就是查看实验平台的性能信息。本文简要说明查看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示例)



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3