[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
---------------------------------下面是被人误导兜了一个大圈,不必看了
如果有两个逻辑CPU具有相同的”core id”,那么超线程是打开的。
网上查了查Intel(R) Pentium(R) Dual CPU E2200 支持超线程 ,如图所示
因此cpu支持超线程所以查查 内核信息
[root@lidongbo~]# uname -a
Linux lidongbo 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
内核2.6
2.4 和 2.5 版本中的 Linux 对称多处理(SMP)内核都支持超线程(参考
http://www.ibm.com/developerworks/cn/linux/l-htl/index.html),2.6就更不用说了
综合第一次得到的cpu信息
processor : 0
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
...
processor : 1
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
有HT超线程标志,因此当前系统机器一个cpu
- 大小: 51.1 KB
分享到:
相关推荐
# 查看物理CPU个数 cat /proc/cpuinfo| grep “physical id”| sort| uniq| wc -l # 查看每个物理CPU中core的个数(即核数) cat /proc/cpuinfo| grep “cpu cores”| uniq # 查看逻辑CPU的个数 cat /proc/cpuinfo|...
文中介绍了几个常用的linux下的命令及方法
Linux下如何查看某一进程的CPU占用率_linux进程cpu使用率.zip
Linux查看物理CPU个数、核数、逻辑CPU个数总核数 = 物理CPU个数 X 每颗物理CPU的核数总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核
Linux查看与设置CPU频率
获取CPU使用率,主频和内存大小,使用率等系统实时,硬件参数。Linux上面运行。
查看linux及aix cpu个数 查看linux及aix cpu个数 ...查看linux及aix cpu个数查看linux及aix cpu个数查看linux及aix cpu个数查看linux及aix cpu个数查看linux及aix cpu个数查看linux及aix cpu个数查看linux及aix cpu个数
cpu为i7-3770 3.40GHz的PC上安装了centos6.4 ,查看/proc/cpuinfo 的时候,发现CPU的频率为:1600,使用的是最低频率。 文档给出了调整cpu的频率方式原理。
Linux监视CPU的命令,教你如何随时监视Linux的系统性能。
CPU 的占用主要取决于什么样的资源正在 CPU 上面运行,比如拷贝一个文件通常占用较少 CPU,因为大部分工作是由 DMA(Direct Memory Access)完成,只是在完成拷贝以后给一个中断让 CPU 知道拷贝已经完成;科学计算通常...
在Linux系统下将cpu、内存等信息获取并放在同一个文件中的C++源码,需要g++才能编译
linux查看cpu使用率.pdflinux查看cpu使用率.pdf
Linux下如何查看CPU信息__包括位数和多核信息.
1.可以通过命令 ./loadCpu.sh 80 来控制cpu的使用效率 2.可以通过top命令查看实际使用情况
如何在linux下查看物理CPU,物理CPU与核数的关系
lm_sensors可以帮助监控主板,CPU的工作电压,风扇转速、温度等数据
Linux计算CPU利用率