Linux – Changing the disk scheduler on the fly

iolinuxscheduling

Can the Linux disk scheduler be changed on the fly by writing to /sys/block/sda/queue/scheduler? Should applications (e.g. Mysql) be stopped / started when changing?

Best Answer

You can change the IO scheduler on the fly without fear. It is protected by appropriate locking to make sure no transactions are lost.

Related Question