How to change I/O scheduler in Linux

Updated@2015/12/15 为什么可能会去修改Linux I/O Scheduler (elevator)?以及什么是I/O Scheduler,应该如何为数据库系统选择合适的I/O Scheduler?可以参看以下文章。 Linux, i/o scheduler and ASM – 在极大I/O压力的情况下,采用Deadline scheduler可能会提高5%-10%的I/O性能。 Choosing an I/O Scheduler for Red Hat® Enterprise Linux® 4 and the 2.6 Kernel – 在大多数情况下,默认的CFQ scheduler已经足够好,无需修改。 Linux I/O Scheduler What is the recommended I/O scheduler for a database workload in Red Hat Enterprise Linux? – 在RHEL 4, 5, 6中CFQ为默认的调度模式,而在RHEL7中已经使用deadline为默认调度模式…