Improve Linux VM IO performance by disabling IO Scheduler

For a little while now we’ve been seeing RedHat Linux virtual machines performing poorly. Tasks would take considerably longer on the Linux VM’s then other Windows VM’s. After digging around I eventually found that RedHat has it’s own IO scheduler that runs in the background. On a physical box this wouldn’t be a big deal, but as a virtual machine everything is already being processed by VMware hypervisor. The fix, disable the IO Scheduler!

Check Linux IO Scheduler

To check the IO Scheduler run the following command, replacing sdx with a,b,c, etc for each of your disks.


# cat /sys/block/sdx/queue/scheduler
noop anticipatory deadline [cfq]

Disable Linux IO Scheduler

To disable the IO Scheduler run the following command, replacing sdx with a,b,c, etc for each of your disks.


# echo noop > /sys/block/sdx/queue/scheduler

In our case our VM has two disks, we ran the commands like such:


# echo noop > /sys/block/sda/queue/scheduler
# echo noop > /sys/block/sdb/queue/scheduler

You will need to reboot the VM for the change to take effect.

If you want to change the schedule for all block devices permanently, you can set it as a boot option by editing the file /boot/grub/grub.conf and adding the to end of the Kernel line:


elevator=noop

End Results

The change was certainly worth it! We ran a benchmark and our before disk io was roughly 60-70 MB/s and after our disk io is a little over 3GB/s!

Similar Posts

  • VMware vCenter Server 5.5.0a update released

    VMware has released an update to vCenter 5.5 Server. The new updated, numbered 5.5.0a doesn’t appear to add any new features but instead focus on squishing a number of bugs in the 5.5 version – mostly around vCenter Single-Sign-On and the vSphere web client.

    Issues resolved with this release are as follows:

    1. Attempts to upgrade vCenter Single Sign-On (SSO) 5.1 Update 1 to version 5.5 might fail with error code 1603
    2. Attempts to log in to the vCenter Server might be unsuccessful after you upgrade from vCenter Server 5.1 to 5.5
    3. Unable to change the vCenter SSO administrator password on Windows in the vSphere Web Client after you upgrade to vCenter Server 5.5 or VCSA 5.5
    4. VPXD service might fail due to MS SQL database deadlock for the issues with VPXD queries that run on VPX_EVENT and VPX_EVENT_ARG tables

    Read More “VMware vCenter Server 5.5.0a update released”

  • VMware Recertification Policy

    VMware certified

    Starting today, March 10 2014, new VCP certifications must be re-certified within two years of it’s earned date. Anyone who currently has their VCP certification prior to March 10 2013 has until March 10, 2015 to re-certify.

    The new policy gives you three options to re-certify:

    1. Take the current exam for your existing VCP certification solution track. For example, if you are a VCP3, you could take the current VCP5-Data Center Virtualization (VCP5-DCV) exam.
    2. Earn a new VCP certification in a different solution track. For example, if you are a VCP-Cloud, you could recertify by earning VCP5-Desktop (VCP5-DT) certification.
    3. Advance to the next level by earning a VMware Certified Advanced Professional (VCAP) certification. For example, if you are a VCP5-DCV you could earn VCAP5-DCA certification.

    I can understand why they are doing this but I don’t agree with the changes. As per the announcement if you let your certification expire, “Your certification will be revoked,and you will no longer be entitled to use the certification logo or represent yourself as VMware certified“. Really? You mean everything that was done prior and after taking the exam means nothing?

    Read More “VMware Recertification Policy”

  • VMware extends VCP550D exam deadline again, provides VCP6 discount

    VMware Education

    VMware has just announced good news for many VCP’s and procrastinators alike by extending the VMware VCP550D Delta Exam from March 10, 2015 to May 8, 2015!

    It seems VMware had some issues with the myLean system over this last weekend as well as some partners of VMware expressed concern that the initial deadline (Nov 30, 2014) and first extension (March 10, 2015) was not enough notice and asked for another extension so they (the partners) could schedule time to have their VCP’s re-certified.

    If you haven’t taken the VCP550D exam yet, I’m compiled a list of topics to study in my VMware delta exam passed post.

    Read More “VMware extends VCP550D exam deadline again, provides VCP6 discount”

  • How to install VMware vSphere Update Manager 5.5

    If you don’t already know, VMware Update Manager (aka, VUM) is a tool which allows you to easily automate patching and upgrading VMware hosts as well as virtual machine hardware and VMware tools. It’s a wonderful tool and makes upgrading and patching so much easier and allows you to quickly see how compliant/up-to-date your environment is with the built in pie graph.

    Recently we had some pretty serious array issues which corrupted the VUM database taking Update Manager down. Since we was going to have to rebuild Update Manager I opted to move from Windows Server 2008 to Windows Server 2012, in the steps below I’ll document step by step how to install VMware Update Manager 5.5 on Server 2012 and a separate database.

    Read More “How to install VMware vSphere Update Manager 5.5”

  • VMware ESXi 5 home lab upgrade

    In the past I’ve been using a single server to run my VMware ESXi home lab. it was slow, old, big and loud. I’ve been meaning to upgrade my home lab for a while and just never got around to it, until now! When looking for new hardware I wanted the servers to be as compact as possible, quiet, and low energy usage as possible while still having some horsepower.

    I debated on going the whitebox solution as I build all my own desktops anyway, I also looked at several other solutions such as the HP ML310e server, Shuttle XH61V barebones machine, but ultimately decided to go with two Intel NUC i5’s.

    Intel NUC i5 and 16GB ram

    Intel NUC i5 DC53427HYE Features:

    • Uses very little energy
    • Completely quiet
    • Supports up to 16GB RAM
    • A dual core CPU that scores nearly 3,600 in PassMark benchmarking
    • Includes vPro which allows me to easily run both NUC’s headless
    • Extremely small, nearly 4 1/2″ inch square footprint

    Read More “VMware ESXi 5 home lab upgrade”

Leave a Reply to Michael Cancel reply

Your email address will not be published. Required fields are marked *

2 Comments