As I mentioned in , 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
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. Open a terminal window and enter the below command.sudo nano /etc/default/grubThis 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:GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” 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).elevator=cfqOnce 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.sudo update-grubThat’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).cat /sys/block/sda/queue/schedulerRelated Posts
An RHCE, ‘Linux’ user with 14+ years of experience. Extreme lover of Linux and FOSS. He is passionate to test every Linux distribution & compare with the previous release to write in-depth articles to help the FOSS community.Deadline scheduler still better than CFQ,
switching over to ‘CFQ’ in
gateway zx4951 all in one desktop pc ubuntu 14.10 solved the slowness issue Thanks Gayan Hey, Gayan. What’s up?Please, I’d like to know if this “how to” of yours is still valid and worth it on Ubuntu 15.04. Is it? By the way, I use Xubuntu 15.04, but I assume this trick fits any Ubuntu flavor, right?Thanks for your time. Cheers. 🙂Bruno thanks Gayan this was very useful to me This site uses Akismet to reduce spam. .Recent Posts
ContactAbout HecticGeekWelcome to HecticGeek, it is an independent blog founded back in 2010. We cover in-depth Linux OS, product review with other all technology-related software and tools. Our mission is to provide valuable and trustful technology-related content to our users.