我最近在CentOS 6.2上安装了
MySQL 5.1,并且比我们运行的MySQL 4.1有了性能提升.所以我将MySQL 5.1升级到MySQL 5.5以查看是否有更多的增益,但实际上它的运行速度只有MySQL 5.1的一半.
我跑的测试是在一张有2.3亿条记录的桌子上.
5.1:57.5899秒
5.5:96.3821秒
真正有趣的是,如果我拉出100,000个记录5.5的节拍5.1但是在最终使5.5负载像尖峰一样的任何东西;加速和减速作为加载,这是额外的秒似乎来自的地方.
对此为何的想法? 5.1和5.5的my.cnf相同
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
bind-address = xxx.xxx.xxx.xxx
#This option makes InnoDB to store each created table into its own .ibd file.
innodb_file_per_table=1
max_allowed_packet=900M
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid