本帖最后由 firebank 于 2014-10-28 01:14:48 编辑

解决方案 »

  1.   

    this bench doesn't tell you too much and maybe because you didn't offer too much details here...First of all, what's the basic info for the testing box, such as cpu, ram etc.Second, what bench tool did you use?third, the size of your testing datasetForth, which storage engine does the testing data tables have?Fifth, your my.cnf configuration....See, I can list a dozen of things that you should have posted here before you ever ask any tunning questions... 
      

  2.   

    服务器硬件:CPU X3430  2.4G   内存8G  硬盘是普通PC机用的的西数500G蓝盘 单块硬盘无RAID
    操作系统:CentOS5.4 64位
    MySQL版本:5.5.19  my.cnf 使用的默认的没有做特别的修改使用InnoDB存储引擎,表有3列,一列增主键,一列Varchar(64),一列INT。是从0行记录开始,持续插入数据来进行测试的。
    bench没有用工具,是自己在程序里面计的调用次数。
      

  3.   

    1、raid5适合读多写少的操作,write不会提升多少,可以测试一下。
    2、数据量大的时候按照一定的规则分区。
    3、这得结合你的业务具体应该每个表应该分多少。
      

  4.   

    读写很频繁的数据可以考虑做raid0+1
    提升硬盘读写效率最好方法是raid0