在RHEL中查询磁盘使用的io调度算法

来源:互联网 发布:mac u盘不能拷贝 编辑:程序博客网 时间:2024/06/04 00:41

在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/schedulernoop [deadline] cfq [root@pgserver ~]# uname -aLinux 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 -r3.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/schedulernoop anticipatory deadline [cfq] [root@targetdb12 ~]# uname -aLinux 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 -r2.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.