在rhel6中
io调度算法
默认是cfq,
在rhel7中
io调度算法
默认是deadline
参考文章:
https://access.redhat.com/solutions/54164
What is the recommended I/O scheduler for a database workload in Red Hat Enterprise Linux?
如下是查询io调度算法的例子:
====================================如下是rhel7.4========================================================
[root@pgserver ~]# cat /sys/block/sda/queue/scheduler
noop [deadline] cfq
[root@pgserver ~]# uname -a
Linux pgserver 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@pgserver ~]# uname -r
3.10.0-693.el7.x86_64
[root@pgserver ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
[root@pgserver ~]#
====================================如下是rhel6.7========================================================
[root@targetdb12 ~]# cat /sys/block/sda/queue/scheduler
noop anticipatory deadline [cfq]
[root@targetdb12 ~]# uname -a
Linux targetdb12 2.6.32-573.el6.x86_64 #1 SMP Wed Jul 1 18:23:37 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@targetdb12 ~]# uname -r
2.6.32-573.el6.x86_64
[root@targetdb12 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
[root@targetdb12 ~]#
另外注意:看io调度算法不要看sdb1,而应该看sdb,也就是说不要看partition,而应该看disk.