As I mentioned in my Ubuntu 14.10 review, I was disappointed with the operating system’s responsiveness, for which, I later blamed the ‘deadline’ I/O scheduler. Luckily I was able to fix it by simply switching over to ‘CFQ’, the default disk I/O governor of Linux, so I thought writing a ‘how to’ would come in handy for the new users.
Changing the disk I/O scheduler in GNU/Linux is easy. You just have to add an option to GRUB’s (the boot-loader) main configuration file. You can do this by using the command-line only, or you can use a text editor GUI with a little help from the command-line. Here I will present the command-line method.
Step 1: Open a terminal window and enter the below command.
sudo nano /etc/default/grub
This will open a GRUB’s configuration files in ‘nano’ (simple & easy to use, command-line based text editor). Now look for the below line of text:
Step 2: Now simply add the below option at the end of quiet splash, with a space, but before the quotation mark (shown in the below screenshot).
Once done, press the ‘Ctrl’ + ‘x’ keys and when asked, type ‘y’ & press enter to exit saving the changes. We are almost done, all that is left is to let GRUB know that we have updated its configurations. For that, enter the below command.
That’s it. Now reboot your computer and from the next time on, the OS will be using the ‘CFQ’ I/O scheduler, which you can confirm by running the below command (depending on your primary storage media, you might have to change the ‘sda’ option though).