Toolset for quick and dirty bottleneck approach:
CPU bottleneck:
mpstat -P all (or press “1″ inside top)
- question: are you effectively using all your CPUs or is a subset doing most of the work?
- followup: can you parallelize the processes to utilize more CPU?
Disk I/O bottleneck:
iostat -x -m 2
- question: are any of your block devices saturated? what is the read/write I/O profile?
- followup: tune database queries, increase # of spindles and/or
drive speed, add RAM to push more data into the Innodb Buffer Pool, etc
Network bottleneck:
pktstat -t
- question: what is your % utilization per interface?
- followup: find someone who knows more about the network than me
阅读(1733) | 评论(0) | 转发(0) |