- 浏览: 71158 次
- 性别:
- 来自: 北京
最新评论
[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
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
发表评论
-
直播常识
2017-07-10 11:47 6421、视频直播的整个流程是什么? 视频直播可大致分为: 1) ... -
Win7旗舰版蓝屏解决办法
2016-04-21 16:35 1888Win7旗舰版在使用过程中经常出现蓝屏现象,蓝屏代码0x000 ... -
Mysql安装布署
2015-09-10 17:45 499参照文档 -
windows 2008 下迁移mysql的data目录
2015-09-10 17:40 1048系统:windows 2008 R2 mysql:5.5.27 ... -
工作笔记
2015-09-09 15:51 6561、mysql更新content_hit时间表的命令: upd ... -
windows mysql处理ibdata1文件过大
2015-09-09 15:43 1102前提备件:与之mysql有关联的服务需要停止,禁止继续写入 W ... -
Win7下搭建SVN
2012-02-03 14:40 3264win7下安装svn服务器端及 ... -
Linux 下配置samba
2012-01-18 16:41 1443CentOS5.1 Linux操作系统,虚拟机的IP地址13. ... -
Linux NFS参数配置详情
2012-01-13 17:50 57321、NFS概述 NFS:Network file sy ... -
Linux nfs参数详情
2012-01-13 17:43 2119整理修改过的,由于这是早期用的,所以就没详细的编辑;但已经比较 ... -
linux 下配置nfs,Mac下挂载
2012-01-13 17:38 4709我的配置环境: 服务器是:10.1.0.13 挂载客户端:li ... -
Linux网络配置命令行工具
2011-12-23 16:18 1749一,ifconfig 用于基本接 ... -
Windows 2003域控下修改IE的安全级别
2011-12-15 16:53 1080首先在Administrator管理员账号下进行操作 有两种 ... -
linux的开机启动项
2011-12-12 14:47 1892[b]linux的开机启动项命令 ntsysv 累wind ... -
svn常见符号
2011-12-12 11:00 1426黄色感叹号(有冲突): -- ... -
如何搭建本地SVN版本库
2011-12-12 10:10 16423搭建好svn后创建svn版本 ... -
DOS下使用USB的简单方法
2011-12-09 17:11 1317在DOS下使用U盘的资料有很多,提供类似内容的超级启动盘也不少 ... -
liunx find用法 详解 + 实例
2011-12-09 11:13 876[b][b]一、Linux中find常见 ... -
linux 查看关机记录
2011-12-09 10:10 16260last last | grep reboot last ... -
查看linux开机和关机时间的命令
2011-12-09 10:09 3023开机的时间:直接一个“W” 关机时间:last -n 10 1 ...
相关推荐
文中介绍了几个常用的linux下的命令及方法
Linux查看物理CPU个数、核数、逻辑CPU个数总核数 = 物理CPU个数 X 每颗物理CPU的核数总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核
# 查看物理CPU个数 cat /proc/cpuinfo| grep “physical id”| sort| uniq| wc -l # 查看每个物理CPU中core的个数(即核数) cat /proc/cpuinfo| grep “cpu cores”| uniq # 查看逻辑CPU的个数 cat /proc/cpuinfo|...
cpu为i7-3770 3.40GHz的PC上安装了centos6.4 ,查看/proc/cpuinfo 的时候,发现CPU的频率为:1600,使用的是最低频率。 文档给出了调整cpu的频率方式原理。
Linux下如何查看某一进程的CPU占用率_linux进程cpu使用率.zip
Linux查看与设置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个数查看linux及aix cpu个数
cpu 使用率 cpu 使用率 cpu 使用率 cpu 使用率 cpu 使用率
获取CPU使用率,主频和内存大小,使用率等系统实时,硬件参数。Linux上面运行。
CPU 的占用主要取决于什么样的资源正在 CPU 上面运行,比如拷贝一个文件通常占用较少 CPU,因为大部分工作是由 DMA(Direct Memory Access)完成,只是在完成拷贝以后给一个中断让 CPU 知道拷贝已经完成;科学计算通常...
Linux监视CPU的命令,教你如何随时监视Linux的系统性能。
在Linux系统下将cpu、内存等信息获取并放在同一个文件中的C++源码,需要g++才能编译
Linux中CPU相关信息查看. 识别物理CPU、Core、逻辑CPU
Linux下如何查看CPU信息__包括位数和多核信息.
linux cpu
如何在linux下查看物理CPU,物理CPU与核数的关系
1.可以通过命令 ./loadCpu.sh 80 来控制cpu的使用效率 2.可以通过top命令查看实际使用情况
linux下c/c++ 实现cpu使用率查询,内存使用率查询,当个程序使用查询 主要应用/proc/stat /proc/meminfo /proc/pid/stat /proc/pid/status 等文件中的内容进行计算
cpu.sh是消耗cpu的脚本,执行方式为 bash cpu.sh 4,最后的数字是cpu核数,执行后需要将打印出来的pid手动录入pid.txt,以便后续kill掉。该代码简单实用,可以迅速占用cpu以达到消耗cpu的目的,可以应付各种服务器...