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

  • How to update VMware ESXi 6.7 to 6.7 Update 1

    To go along with the newly released VMware vCenter 6.7 Update 1 release, comes VMware ESXi 6.7 Update 1 as well.

    As you might expect with an Update 1 release there are a number of patches, fixes and new additions with ESXi 6.7 U1. If you haven’t already seen, check out the release notes here.

    Below are two ways to easily upgrade your ESXi 6.0-6.7 hosts to ESXi 6.7 U1 using the command line or by using VMware Update Manager.
    Read More “How to update VMware ESXi 6.7 to 6.7 Update 1”

  • VMware vCenter 5.0 Update 1a released

    VMware vCenter 5.0 Update 1a has just been released and is the first major update since version 5.0.

    The main improvements being:

    • vCenter Server 5.0 Update 1a introduces support for the following vCenter Databases
      • Oracle 11g Enterprise Edition, Standard Edition, Standard ONE Edition Release 2 [11.2.0.3] – 64 bit
      • Oracle 11g Enterprise Edition, Standard Edition, Standard ONE Edition Release 2 [11.2.0.3] – 32 bit
    • vCenter Server Appliance Database Support: The DB2 express embedded database provided with the vCenter Server Appliance has been replaced with VMware vPostgres database. This decreases the appliance footprint and reduces the time to deploy vCenter Server further.

    Read More “VMware vCenter 5.0 Update 1a released”

  • VMware VCP5-DCV Delta Re-certification Exam

    VMware VCP DCV

    Looking to renew your VCP before the March 10th 2015 expiration date? Then the new VMware VCP5-DCV Delta (Exam Code VCP550D) is a cheaper way to renew your VCP without taking the full on exam or not just ready to tackle the VCAP. The new exam covers new material between the vSphere 5.0/5.1 and vSphere 5.5 exams – looking the the blueprints, most noticeably VSAN.

    While you still have to schedule the exam through Pearson VUE, you don’t have to take the course at a testing center and instead can take it online from any device!

    Read More “VMware VCP5-DCV Delta Re-certification Exam”

  • VMware vCenter Server 5.5b released

    vmware vcenter 5.5b released

    VMware hasn’t let the holidays get in their way and has released vCenter Server 5.5b (Build 1476387) along with vCenter Server Appliance 5.5.0b (Build 1476389). The update includes a number of fixes.

    Resolved Issues in 5.5.0b

    Upgrade and Installation

    • Upgrading the vSphere Web Client to vSphere 5.5 fails with an error
      Attempts to upgrade the vSphere Web Client to vSphere 5.5 fails when they are installed in a custom, non-default location. An error message similar to the following is displayed:

      Error 29107. The service or solution user already registered...

    Read More “VMware vCenter Server 5.5b released”

  • VMware Workstation 12 Pro Released

    VMware has just released a new version of Workstation in VMware Workstation 12 Pro. Workstation 12 Pro provides full support for Windows 10, including features such as Cortana and universal applications. As well as even larger virtual machines with up to 16 vCPU’s and 64GB of memory. Workstation 12 Pro even supports 4K displays and DirectX 10 and OpenGL 3.3

    You can even seamlessly drag and drop virtual machines between your PC and your internal cloud running vSphere, ESXi or another instance of Workstation. In addition, easily connect to vCloud Air and upload, run, and view virtual machines right from the Workstation 12 Pro interface.

    Read More “VMware Workstation 12 Pro Released”

  • Install ESXi 5.1 from a USB Flash Drive

    Many servers already come with a DVD/CD-ROM drive or some kind of ability to virtually mount an ISO image from a network share onto your server to then install ESXi. However, not all do or you just want to have your ESXi image readily available. Here’s a quick step by step instructions on how to use a USB flash drive to install ESXi.

    1. Download ESXi 5.1 from VMware (if you haven’t already) as well as UNettbootin.
    2. Plug in your USB Flash Drive.
    3. Open UNetbootin and select “Diskimage”, set Type to “USB Drive”, select Drive letter of your USB flash drive, and set the path of your ESXi 5.1 ISO image. Then click on “OK”.
      unetbootin setup
    4. Read More “Install ESXi 5.1 from a USB Flash Drive”

Leave a Reply

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

2 Comments