通过CPUID命令访问CPU详细信息

简介:

通过cpuid命令,来获取CPU的信息,这个命令的底层是通过CPUID指令。获取的内容比/proc/cpuinfo要详细很多,如果要获取详细信息就使用cpuid命令吧。

例如,执行

#cpuid

CPU 0:

   vendor_id = "GenuineIntel"

   version information (1/eax):

      processor type  = primary processor (0)

      family          = Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom, AMD Athlon/Duron, Cyrix M2, VIA C3

(6)

      model           = 0x5 (5)

      stepping id     = 0x1 (1)

      extended family = 0x0 (0)

      extended model  = 0x4 (4)

      (simple synth)  = Intel Mobile Core i3-4000Y / Mobile Core i5-4000Y / Mobile Core i7-4000Y / Mobile Pent

ium 3500U/3600U/3500Y / Mobile Celeron 2900U (Mobile U/Y) (Haswell), 22nm

   miscellaneous (1/ebx):

      process local APIC physical ID = 0x0 (0)

      cpu count                      = 0x0 (0)

      CLFLUSH line size              = 0x8 (8)

      brand index                    = 0x0 (0)

   brand id = 0x00 (0): unknown

   feature information (1/edx):

      x87 FPU on chip                        = true

      virtual-8086 mode enhancement          = true

      debugging extensions                   = true

      page size extensions                   = true

      time stamp counter                     = true

      RDMSR and WRMSR support                = true

 

1.1.1 参考

https://en.wikipedia.org/wiki/CPUID

目录
相关文章
|
1月前
|
Linux
如何在linux中查看cpu信息、机器硬件型号
如何在linux中查看cpu信息、机器硬件型号
|
1月前
|
监控 数据可视化 Linux
linux查看CPU信息
在Linux中检查CPU信息,可使用`lscpu`快速查看概述,`cat /proc/cpuinfo`获取详细硬件数据,`top`或`htop`(如果安装)监控实时使用率,`mpstat -P ALL`显示统计详情,而图形界面环境下可通过系统监视器应用直观查看。
31 3
|
1月前
|
机器学习/深度学习 缓存 监控
linux查看CPU、内存、网络、磁盘IO命令
`Linux`系统中,使用`top`命令查看CPU状态,要查看CPU详细信息,可利用`cat /proc/cpuinfo`相关命令。`free`命令用于查看内存使用情况。网络相关命令包括`ifconfig`(查看网卡状态)、`ifdown/ifup`(禁用/启用网卡)、`netstat`(列出网络连接,如`-tuln`组合)以及`nslookup`、`ping`、`telnet`、`traceroute`等。磁盘IO方面,`iostat`(如`-k -p ALL`)显示磁盘IO统计,`iotop`(如`-o -d 1`)则用于查看磁盘IO瓶颈。
131 10
|
1月前
|
弹性计算 运维 Shell
显示 CPU 厂商信息
【4月更文挑战第28天】
21 0
|
1月前
|
存储 弹性计算 运维
|
1月前
|
弹性计算 运维 Shell
显示CPU 厂商信息
【4月更文挑战第29天】
21 0
|
1月前
|
存储 弹性计算 运维
|
1月前
|
Linux
查看服务器的配置,系统,cpu等信息
查看服务器的配置,系统,cpu等信息
53 0
|
1月前
|
Linux
centos 查看服务器信息 版本cpu
centos 查看服务器信息 版本cpu
37 0
|
1月前
|
存储 监控 Linux
Linux 使用getrusage系统调用获取cpu信息:一个C++实例分析
Linux 使用getrusage系统调用获取cpu信息:一个C++实例分析
57 0