linux系统中想要查看cpu信息由两种方式:1.通过lscpu查看系统中cpu的整体信息;2. cat /proc/cpuinfo查看系统中每个逻辑cpu的信息
lscpu命令
从下面命令结果中可以看出,这个服务器的配置是,一个物理cpu,双核,4线程(一个线程相当于一个逻辑cpu)
[root@instance-w6b0iilx proc]# lscpu Architecture: x86_64 //cpu架构是x86的64位 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 //4个逻辑cpu On-line CPU(s) list: 0-3 Thread(s) per core: 2 //每个核有两个线程,说明使用了超线程技术 Core(s) per socket: 2 //每个物理卡槽(或者说每个物理CPU)有两个核 Socket(s): 1 //1个物理卡槽 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz Stepping: 4 CPU MHz: 2394.374 BogoMIPS: 4788.74 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 28160K NUMA node0 CPU(s): 0-3
cat /proc/cpuinfo
该命令查询的结果是每个逻辑cpu对应一块记录:
processor:逻辑cpu(或者说线程)的唯一标识符
physical id:物理cpu的唯一标识符
core id: 内核唯一标识符
siblings:该逻辑cpu所属物理cpu下的逻辑cpu数量
cpu cores: 该逻辑cpu所属物理cpu下的内核数量
[root@instance-w6b0iilx proc]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 85 model name : Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz stepping : 4 microcode : 0x1 cpu MHz : 2394.374 cache size : 28160 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : 省略。。 bogomips : 4788.74 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 85 model name : Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz stepping : 4 microcode : 0x1 cpu MHz : 2394.374 cache size : 28160 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : 省略。。 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 85 model name : Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz stepping : 4 microcode : 0x1 cpu MHz : 2394.374 cache size : 28160 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 2 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : 省略。。 bogomips : 4788.74 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 85 model name : Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz stepping : 4 microcode : 0x1 cpu MHz : 2394.374 cache size : 28160 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 2 apicid : 3 initial apicid : 3 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : 省略。。 bogomips : 4788.74 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
相关推荐
不用安装,直接运行,绿色轻巧,可以查看cpu信息
Android 终端查看CPU信息源码分析
Linux下如何查看CPU信息__包括位数和多核信息.
在bios中查看cpu信息收集.pdf
用C#写的一个查看cpu信息的小程序!
亮出你的身份证 通过CPUID查看CPU信息.pdf
linux中如何查看cpu信息、机器硬件型号.docx
该文档适用于各种监控系统,通过SNMP的方式来获取CPU的各种信息。这是一个实例,读者可以根据情况改动,希望对你有所帮助。
查看指定进程的cpu和内存使用情况(与任务管理器查看一样)
系统维护时随时可能有需要查看 CPU ...不过这里我们主要是介绍一下 linux 系统如何查看CPU信息、机器型号、内存信息等。 系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 #
CPU-Z 是一款家喻户晓的CPU检测软件,除了使用Intel或AMD自己的检测软件之外,我们平时使用最多的此类软件就数它了。CPU-Z提供一些关於处理器的资讯,包含了制造厂及处理器名称,核心构造及封装技术,内部、外部频率...
一个可以用来查看本机上的进程信息的软件,非常不错,比系统自带的详细多了,强烈推荐!
主要介绍了Linux 查看cpu 信息的命令及简单实例的相关资料,需要的朋友可以参考下
Cpu-Z 是一款家喻户晓的CPU检测软件,是检测CPU使用程度最高的一款软件,除了使用...另外,它还能检测主板和内存的相关信息,其中就有我们常用的内存双通道检测功能。当然,对于CPU的鉴别我们还是最好使用原厂软件。
绿色版的CPU-Z 可查看CPU 内存等信息
可查看CPU信息、caches、内存电压检测、SPD等信息
erlang整理的一些心得和lunix查看cpu和内存信息的方法
Ubuntu查看系统信息(CPU、GPU信息).pdf
在centos7 操作系统下,使用命令查看cpu、内存、版本信息