Linux查看cpu个数
来源:互联网 发布:java log文件解析入库 编辑:程序博客网 时间:2024/05/29 09:11
- [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个数和磁盘个数
- iOS -- 17个常用代码整理
- java链接Mysql异常:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
- oracle的存储过程示例
- js实现切换图片
- offsetWidth,offsetHeight,offsetLeft,offsetTop相关的小实验
- Linux查看cpu个数
- 扩展RBAC用户角色权限设计方案
- java抽象类,接口总结
- Disruptor学习----综述
- cloud foundry之router源码分析
- 颜色与十六进制值的互转
- iReport_3.7.6安装配置
- IBM websphere Message Broker 学习笔记 - 命令
- 长SQL语句