linux查看cpu个数
来源:互联网 发布:js图像热点链接 编辑:程序博客网 时间:2024/05/16 14:06
- [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个数
- linux查看cpu个数
- Linux查看cpu个数
- linux查看cpu个数
- Linux 查看 CPU 个数
- Linux查看CPU个数
- linux 查看CPU个数
- Linux查看cpu个数
- Linux查看cpu个数
- linux CPU个数查看
- linux查看cpu个数命令
- Linux查看服务器CPU个数
- Linux下查看CPU个数
- 查看linux的cpu个数
- linux 查看cpu个数 cpu核数 逻辑cpu个数
- linux查看物理cpu、逻辑cpu个数
- Linux 查看CPU个数和磁盘个数
- 如何在安装双启动后卸载 Windows 或者 Linux
- 用指针的指针分配若干块指针空间
- 使用keytool 查看 Apk签名信息
- KEIL MDK输出map文件分析
- 试题 linux部分
- linux查看cpu个数
- vector清空
- 函数指针
- vs2012换肤功能,vs2012主题及自定义主题
- shell自动化配置hadoop配置文件示例
- php 测试web服务器连接
- nvicat for mysql远程连接linux的MySQL提示10060的解决办法
- 生日亲子装(亲子生日装),孩子过生日美好回忆的见证
- 送女神的礼物