linux查看CPU线程命令,Linux下怎么查看高CPU使用率线程

221125995043d8971899980ec4d9bcfb.png

已采纳

1、查看物理CPU的个数

[root@MysqlCluster01 ~]# cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l

1

2、查看逻辑CPU的个数

[root@MysqlCluster01 ~]# cat /proc/cpuinfo |grep "processor"|wc -l

4

3、查看CPU是几核(即,核心数)

[root@MysqlCluster01 ~]# cat /proc/cpuinfo |grep "cores"|uniq

cpu cores : 4

4、查看CPU的主频

[root@MysqlCluster01 ~]# cat /proc/cpuinfo |grep MHz|uniq

cpu MHz : 2499.982

5、当前操作系统内核信息

[root@MysqlCluster01 ~]# uname -a

Linux MysqlCluster01 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu Jun 19 21:14:45 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

6、当前操作系统发行版信息

[root@MysqlCluster01 ~]# cat /etc/issue

CentOS release 6.4 (Final)

Kernel \r on an \m

7、内存使用情况

[root@MysqlCluster01 ~]# free -m

total used free shared buffers cached

Mem: 7863 2738 5125 0 141 835

-/+ buffers/cache: 1761 6102

Swap: 3967 0 3967

取消

评论

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值