`

linux本机状态 /proc/cpuinfo

阅读更多

/proc/cpuinfo
    •    processor 条目包括这一逻辑处理器的唯一标识符。
    •    physical id 条目包括每个物理封装的唯一标识符。
    •    core id 条目保存每个内核的唯一标识符。
    •    siblings 条目列出了位于相同物理封装中的逻辑处理器的数量。
    •    cpu cores 条目包含位于相同物理封装中的内核数量。
    •    如果处理器为英特尔处理器,则 vendor id 条目中的字符串是 GenuineIntel。


The following is an output from /proc/cpuinfo on a laptop with a Core 2 Duo T7200 CPU.
processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz
stepping        : 6
cpu MHz         : 1000.000
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
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 lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips        : 3990.09
clflush size    : 64
As you can see, the file tells us we have one processor with two cores. Furthermore the cpu is clocked down to 1000 MHz. We also have a bunch of flags which tells us what extra instructions this processor has to offer.
flags

The flags line tells us what extra instructions the processor has to offer. This is a listing of flags with a short explanation of each. There is an even shorter explanation in the file /usr/include/asm/cpufeature.h.
Intel flags (This table is currently identical with /usr/include/asm/cpufeature.h. Hopefully some hardware god will share his wisdom and expand this table. )
Flag Description Common in processor types
    •    fpu Onboard (x87) Floating Point Unit
    •    vme Virtual Mode Extension
    •    de Debugging Extensions
    •    pse Page Size Extensions
    •    tsc Time Stamp Counter: support for RDTSC and WRTSC instructions
    •    msr Model-Specific Registers
    •    pae Physical Address Extensions: ability to access 64GB of memory; only 4GB can be accessed at a time though
    •    mce Machine Check Architecture
    •    cx8 CMPXCHG8 instruction
    •    apic Onboard Advanced Programmable Interrupt Controller
    •    sep Sysenter/Sysexit Instructions; SYSENTER is used for jumps to kernel memory during system calls, and SYSEXIT is used for jumps back to the user code
    •    mtrr Memory Type Range Registers
    •    pge Page Global Enable
    •    mca Machine Check Architecture
    •    cmov CMOV instruction
    •    pat Page Attribute Table
    •    pse36 36-bit Page Size Extensions: allows to map 4 MB pages into the first 64GB RAM, used with PSE.
    •    pn Processor Serial-Number; only available on Pentium 3
    •    clflush CLFLUSH instruction
    •    dtes Debug Trace Store
    •    acpi ACPI via MSR
    •    mmx MultiMedia Extension
    •    fxsr FXSAVE and FXSTOR instructions
    •    sse Streaming SIMD Extensions. Single instruction multiple data. Lets you do a bunch of the same operation on different pieces of input in a single clock tick.
    •    sse2 Streaming SIMD Extensions-2. More of the same.
    •    selfsnoop CPU self snoop
    •    acc Automatic Clock Control
    •    IA64 IA-64 processor Itanium.
    •    ht HyperThreading. Introduces an imaginary second processor that doesn’t do much but lets you run threads in the same process a bit quicker.
    •    nx No Execute bit. Prevents arbitrary code running via buffer overflows.
    •    pni Prescott New Instructions aka. SSE3
    •    vmx Intel Vanderpool hardware virtualization technology
    •    svm AMD “Pacifica” hardware virtualization technology
    •    lm “Long Mode,” which means the chip supports the AMD64 instruction set
    •    tm “Thermal Monitor” Thermal throttling with IDLE instructions. Usually hardware controlled in response to CPU temperature.
    •    tm2 “Thermal Monitor 2″ Decrease speed by reducing multipler and vcore.
    •    est “Enhanced SpeedStep”

分享到:
评论

相关推荐

    详解Linux服务器状态、性能相关命令

    服务器状态分析 查看Linux服务器CPU详细情况 #查看CPU的信息 [root@host ~]# cat /proc/cpuinfo  #查看物理CPU的个数 [root@host /]# cat /proc/cpuinfo | grep physical id | sort | uniq | wc -l #查看每个...

    Emmagee-master

    Android系统是基于Linux内核的,所以系统文件的结构和Linux下一样,系统总体CPU使用信息放在/proc/stat文件下,/proc/cpuinfo文件存放CPU的其它信息,包括CPU名称,直接读取即可。Emmagee是将选中应用的PID传入,...

    Linux常用命令大全.zip

    # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -tv # 列出所有PCI设备 # lsusb -tv # 列出所有USB设备 # lsmod # 列出加载的内核模块 # env # 查看环境变量 二、资源: # free -m # 查看...

    Linux部署服务器常用命令.doc

    bin/4.1.2:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin 如果ifconfig没行就打上面的,配置环境变量 cat /etc/sysconfig/network-scripts/ifcfg-eth0 IP地址配置文件 cat /etc/passwd 本机多少用户 su - ...

    西南交通大学操作系统实验报告HXP(评分a 95分)

    通过本实验,了解LINUX系统的组织和行为,观察各种存储系统状态信息的内核变量 1.理解Linux操作系统功能和结构,重点掌握/proc文件。 2.熟悉gcc、gdb、codeblocks或者其它IDE,比较Linux下C程序编译、调试技术。 3....

    全志A80平台固定以太网的MAC地址ethernet_a80_merrii_20151203_1607.7z

    找了好久,可以看见文件:/proc/cpuinfo中的CPU的ID号是唯一的。 测试:先刷美睿的系统,然后再刷原生的系统(支持4K录像,但是美睿没有移植驱动的系统),发现序列号没变。 序列号查看的方法:设置→关于平板电脑→...

    大数据运维方向面试题.pdf

    看内存 :free 看cpu:more /proc/cpuinfo 看IO:iostat -x 10 看磁盘:fdisk -l 6.请⽤多种⽅式在linux系统中设置环境变量,并指出各种⽅式的区别。 1、控制台中设置,不赞成这种⽅式,因为他只对当前的shell 起作...

    大数据运维方向面试题(1).pdf

    看内存 :free 看cpu:more /proc/cpuinfo 看IO:iostat -x 10 看磁盘:fdisk -l 6.请⽤多种⽅式在linux系统中设置环境变量,并指出各种⽅式的区别。 1、控制台中设置,不赞成这种⽅式,因为他只对当前的shell 起作...

    Linux命令笔记

    4:查看CPU信息 /proc/cpuinfo 5:uptime启动时间和平均负载 语法: uptime 6:uname查看系统与内核相关信息 语法: uname [选项] 7:判断当前系统的位数(32位或64位..) 8:查看当前Linux系统的发行版本 语法: lsb_...

    IT运维之Linux服务器监控方案.doc

    /bin/bash #监控cpu系统负载 IP=`ifconfig eth0 " grep "inet addr" " cut -f 2 -d ":" " cut -f 1 -d " "` cpu_num=`grep -c 'model name' /proc/cpuinfo` count_uptime=`uptime "wc -w` load_15=`uptime " awk '{...

Global site tag (gtag.js) - Google Analytics