获得linux的cpu信息
来源:互联网 发布:ios10软件推荐 知乎 编辑:程序博客网 时间:2024/05/21 07:14
- [root@lidongbo~]# cat /proc/cpuinfo
- processor : 0
- vendor_id : GenuineIntel
- cpu family : 6
- model : 15
- model name : Intel(R) Pentium(R) Dual CPU E2200 @ 2.20GHz
- stepping : 13
- cpu MHz : 2200.010
- cache size : 1024 KB
- physical id : 0
- siblings : 2
- core id : 0
- cpu cores : 2
- apicid : 0
- 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 syscall nx lm constant_tsc pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
- bogomips : 4403.65
- clflush size : 64
- cache_alignment : 64
- address sizes : 36 bits physical, 48 bits virtual
- power management:
- processor : 1
- vendor_id : GenuineIntel
- cpu family : 6
- model : 15
- model name : Intel(R) Pentium(R) Dual CPU E2200 @ 2.20GHz
- stepping : 13
- cpu MHz : 2200.010
- cache size : 1024 KB
- physical id : 0
- siblings : 2
- core id : 1
- cpu cores : 2
- apicid : 1
- 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 syscall nx lm constant_tsc pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
- bogomips : 4399.94
- clflush size : 64
- cache_alignment : 64
- address sizes : 36 bits physical, 48 bits virtual
- power management:
- [root@lidongbo ~]#
通过上面信息我们可以知道
从processor 0 到processor 1可以看出来总共有2个核
从physical id : 0 可以看出有一个cpu(因为没发现physical id : 1)
从cpu cores : 2 可以看出cpu有两个内核
简单点
1. 查看物理CPU的个数
#cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
2. 查看逻辑CPU的个数
#cat /proc/cpuinfo |grep "processor"|wc -l
3. 查看CPU是几核
#cat /proc/cpuinfo |grep "cores"|uniq
4. 查看CPU的主频
#cat /proc/cpuinfo |grep MHz|uniq
- 获得linux的cpu信息
- Linux下获得CPU的信息
- 获得CPU的信息
- 获得CPU的信息
- CPU信息的获得
- CPU信息的获得
- CPU信息的获得
- CPU信息的获得,比较全面的
- CPU信息的获得,比较全面的。
- Android 获得cpu的配置信息
- linux cpu的常用信息
- linux 查看cpu的信息
- Linux查看CPU的信息
- java 获得CPU 内存信息
- 研究心得------->CPU信息的获得,比较全面的。
- 在linux下查看CPU的信息
- linux 中查看cpu的信息
- 查看linux服务器的cpu信息
- Linux 命令专题:TOP
- SQL Server-存储过程
- python debug【】
- Microsoft Sync Framework 系列(三):微软同步框架出现背景及要解决的问题
- jquery焦点事件
- 获得linux的cpu信息
- CX51 用户手册----NOMOD517 伪指令
- 揭开正则表达式的神秘面纱
- substr 函数
- ExtJS控件样式的修改(示例无边框panel)
- Microsoft Sync Framework 系列(四):微软同步框架中的基本概念
- ServerSocket和Socket的区别
- document.elements.length的一个bug
- 垃圾回收机制算法的前世今生