查看linux服务器cpu信息命令
2016-04-27 17:26
501 查看
1.查看逻辑CPU个数:
#cat /proc/cpuinfo |grep "processor"|sort -u|wc -l
24
2.由于有超线程技术有必要查看一下物理CPU个数:
#grep "physical id" /proc/cpuinfo|sort -u|wc -l
2
#grep "physical id" /proc/cpuinfo|sort -u
physical id : 0
physical id : 1
查看每个物理CPU内核个数:
#grep "cpu cores" /proc/cpuinfo|uniq
cpu cores : 6
每个物理CPU上逻辑CPU个数:
#grep "siblings" /proc/cpuinfo|uniq
siblings : 12
判断是否开启了抄超线程:
如果多个逻辑CPU的"physical id"和"core id"均相同,说明开启了超线程
或者换句话说
逻辑CPU个数 > 物理CPU个数 * CPU内核数 开启了超线程
逻辑CPU个数 = 物理CPU个数 * CPU内核数 没有开启超线程
#cat /proc/cpuinfo |grep "processor"|sort -u|wc -l
24
2.由于有超线程技术有必要查看一下物理CPU个数:
#grep "physical id" /proc/cpuinfo|sort -u|wc -l
2
#grep "physical id" /proc/cpuinfo|sort -u
physical id : 0
physical id : 1
查看每个物理CPU内核个数:
#grep "cpu cores" /proc/cpuinfo|uniq
cpu cores : 6
每个物理CPU上逻辑CPU个数:
#grep "siblings" /proc/cpuinfo|uniq
siblings : 12
判断是否开启了抄超线程:
如果多个逻辑CPU的"physical id"和"core id"均相同,说明开启了超线程
或者换句话说
逻辑CPU个数 > 物理CPU个数 * CPU内核数 开启了超线程
逻辑CPU个数 = 物理CPU个数 * CPU内核数 没有开启超线程
相关文章推荐
- git在linux下配置
- linux笔记
- linux常用命令
- linux下rsync+inotify同步文件
- 定时同步数据库表(mysql+linux+crontab)
- CentOS安装KVM环境并配置网桥
- Linux启动过程学习
- SecureCRT连接linux,vim颜色显示问题
- CentOS系统安装VNC详细步骤
- 对嵌入式Linux中的根文件系统的理解和解析
- linux 利用nethogs查看某进程的网卡流量
- IO多路复用之select、poll、epoll详解
- centos 6.5 x64安装zabbix 3.0.2
- centos7 安装中文编码
- linux 常用命令
- linux压缩(解压缩)命令详解
- centos 6.5+hadoop2.4.1环境配置
- 设置Linux内核参数 /etc/sysctl.conf
- Linux下Rsync+Inotify-tools实现数据实时同步
- Linux系统启动流程(1)