> CentOS > CentOS入门 >

CentOS上查看多核负载

怎么在 Linux 上查看多核负载?

# 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 ...

查看硬盘UUID?

## 方法一
# blkid
 
## 方法二
# ls -l /dev/disk/by-uuid

(责任编辑:IT)