CentOS上查看多核负载
时间:2015-06-02 19:18 来源:linux.it.net.cn 作者:IT
# top
# 之后按下数字 1 . 则显示多个CPU
top
- 18:05:48 up 1 day, 2:05, 1 user, load average: 0.00, 0.00, 0.00
Tasks: 174 total, 1 running, 173 sleeping, 0 stopped, 0 zombie
Cpu0 : 0.0%us, 0.0%sy, 0.0%ni,100.0%
id
, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.5%us, 0.5%sy, 0.0%ni, 98.9%
id
, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.0%us, 0.5%sy, 0.0%ni, 99.5%
id
, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%
id
, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu4 : 0.0%us, 0.0%sy, 0.0%ni,100.0%
id
, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu5 : 0.0%us, 0.0%sy, 0.0%ni,100.0%
id
, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu6 : 0.0%us, 0.0%sy, 0.0%ni,100.0%
id
, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu7 : 0.0%us, 0.0%sy, 0.0%ni,100.0%
id
, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 5984824k total, 611628k used, 5373196k
free
, 26552k buffers
Swap: 6291448k total, 0k used, 6291448k
free
, 400584k cached
1、得到 httpd 进程的PID
# pidof httpd
21358
2、通过
top
指定查看特定的PID
# top -p 21358 # top -p PID,PID,PID ...
## 方法一
# blkid
## 方法二
# ls -l /dev/disk/by-uuid
(责任编辑:IT)
(责任编辑:IT) |