Linux查看cpu个数
来源:互联网 发布:sqlserver 分组合计 编辑:程序博客网 时间:2024/05/22 07:04
[root@lidongbo~]# cat /proc/cpuinfoprocessor : 0vendor_id : GenuineIntelcpu family : 6model : 15model name : Intel(R) Pentium(R) Dual CPU E2200 @ 2.20GHzstepping : 13cpu MHz : 2200.010cache size : 1024 KBphysical id : 0siblings : 2core id : 0cpu cores : 2apicid : 0fpu : yesfpu_exception : yescpuid level : 10wp : yesflags : 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_lmbogomips : 4403.65clflush size : 64cache_alignment : 64address sizes : 36 bits physical, 48 bits virtualpower management:processor : 1vendor_id : GenuineIntelcpu family : 6model : 15model name : Intel(R) Pentium(R) Dual CPU E2200 @ 2.20GHzstepping : 13cpu MHz : 2200.010cache size : 1024 KBphysical id : 0siblings : 2core id : 1cpu cores : 2apicid : 1fpu : yesfpu_exception : yescpuid level : 10wp : yesflags : 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_lmbogomips : 4399.94clflush size : 64cache_alignment : 64address sizes : 36 bits physical, 48 bits virtualpower management:[root@lidongbo ~]#
通过上面信息我们可以知道
从processor 0 到processor 1可以看出来总共有2个核
从physical id : 0 可以看出有一个cpu(因为没发现physical id : 1)
从cpu cores : 2 可以看出cpu有两个内核
简单点
- 查看物理CPU的个数
cat /proc/cpuinfo |grep “physical id”|sort |uniq|wc -l
- 查看逻辑CPU的个数
cat /proc/cpuinfo |grep “processor”|wc -l
- 查看CPU是几核
cat /proc/cpuinfo |grep “cores”|uniq
- 查看CPU的主频
cat /proc/cpuinfo |grep MHz|uniq
0 0
- 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个数和磁盘个数
- MFC命令传递的内部流程
- 融么么俱乐部微信项目总结
- escape()、encodeURI()、encodeURIComponent()区别详解
- iOS按钮封装
- typeof操作符和instanceof操作符的区别
- Linux查看cpu个数
- spring入门-spring与hibernate整合完成增删改查的操作(封装HibernateTemplate模版类对象)
- Spring jar包介绍
- LeetCode 算法刷题(4)
- WebView---android webview组件如何使用 Webview与js交互
- 转载:solr MoreLikeThis的原理分析
- Codeforces 106 C Buns【多重背包】
- 文件映射
- TCP/IP知识理解(上)