Chinaunix首页 | 论坛 | 博客
  • 博客访问: 128868
  • 博文数量: 89
  • 博客积分: 2580
  • 博客等级: 少校
  • 技术积分: 775
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-05 20:09
文章分类

全部博文(89)

文章存档

2009年(89)

我的朋友

分类: LINUX

2009-09-21 21:23:36

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
阅读(443) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~