iostat
17:55 [[email protected]]$ iostat Linux 2.6.32-220.el6.x86_64 (a01.offline.stat.laifeng.m6.youku) 2015年05月25日 _x86_64_ (8 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 1.38 0.00 0.25 0.12 0.00 98.25 Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn sda 3.01 16.28 411.17 197033550 4975911044 tty:[2] jobs:[0] cwd:[~] 18:39 [[email protected]]$ strace -cfp $(pidof mysqld) attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted 14:31 [[email protected]]$ cat /sys/block/sda/queue/scheduler noop anticipatory deadline [cfq]
# 总核数 = 物理CPU个数 X 每颗物理CPU的核数 # 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数 # 查看物理CPU个数 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l # 查看每个物理CPU中core的个数(即核数) cat /proc/cpuinfo| grep "cpu cores"| uniq # 查看逻辑CPU的个数 cat /proc/cpuinfo| grep "processor"| wc -l
相关推荐
zhoutaifeng 2020-02-17
Terminator0 2020-01-19
zrenpro 2013-07-31
lishupeng0 2013-06-16
abdstime 2019-12-17
好好学习天天 2019-12-12
lishupeng0 2015-08-13
Pipcie 2015-07-16
lishupeng0 2015-07-08
lvchao 2015-06-16
CodingFire 2019-10-10
bighandsky 2017-05-02
CloudCraft 2018-02-23
ooouuuooouuu 2019-08-15
sinlff 2019-04-27
此处省略三千字 2019-03-28
差点是帅哥 2018-02-23
zrenpro 2016-10-21