Linux schedulers in tpcc like benchmark
2015-09-11 09:26
585 查看
I mentioned earlier that IO scheduler CFQ coming by default in RedHat / CentOS 5.x may be not so good for MySQL. And yesterday one customer reported that just changing cfq to noop solved their InnoDB IO problems. I ran tpcc scripts against XtraDB on our Dell PowerEdge R900 server (16 cores, 8 disks in RAID10, controller Perc/6i with BBU) to compare cfq, deadline, noop and anticipatory (last one just to get number, I did not expect a lot from anticipatory).
Here is result (in transactions per minute, more is better):
Here is graph of disk writes (column bo in vmstat) during benchmark
As you see noop / deadline can utilize disks much better.For reference I used tpcc scripts from https://launchpad.net/perconatools, generated 100W (about 9.5GB of data on disk), and used next XtraDB params:Shell
Here is result (in transactions per minute, more is better):
cfq | 2793.5 |
noop | 6586.4 |
deadline | 6513.7 |
anticipatory | 1465 |
Here is graph of disk writes (column bo in vmstat) during benchmark
As you see noop / deadline can utilize disks much better.For reference I used tpcc scripts from https://launchpad.net/perconatools, generated 100W (about 9.5GB of data on disk), and used next XtraDB params:Shell
[mysqld]#mysqld options in alphabetical orderuser=root default_table_type=MYISAM innodb_buffer_pool_size=3Ginnodb_data_file_path=ibdata1:10M:autoextendinnodb_file_per_table=1innodb_flush_log_at_trx_commit=1innodb_log_buffer_size=8Minnodb_log_files_in_group=2innodb_log_file_size=128Minnodb_thread_concurrency=0innodb_flush_method = O_DIREC innodb_write_io_threads=4innodb_read_io_threads=4innodb_io_capacity=800 innodb_adaptive_checkpoint=1 max_connections=3000query_cache_size=0skip-name-resolve table_cache=2048 |
相关文章推荐
- linux
- 针对MySQL的Linux性能优化技巧
- Linux schedulers in tpcc like benchmark
- Linux内核OOM机制的详细分析
- Linux虚拟内存(VM)相关参数解析
- 利用python多线程执行远程linux上命令
- 修改Linux文件句柄数限制
- 修改Linux文件句柄数限制
- linux之makefile学习
- linux下tar命令详解
- Win8移动硬盘优盘安装Ubuntu 1404方法
- Mac 下远程连接Linux
- 昨天修复的几个编译问题
- linux下使用tar命令
- linux下svn常用命令
- centos下yum安装lamp
- wget -c -r -np -k -L -p www.oldlinux.org/Linux.old/
- Linux 有问必答:如何解决 Linux 上的 Wireshark 界面僵死
- Linux查看CUP和内存的使用情况--top命令
- Linux基本操作