Skip to content

Commit 5ae85f2

Browse files
lpancescukbsingh
authored andcommitted
Set the default IO scheduler to noop (#124)
The best IO scheduler for a VM is noop, not the default cfq. We have to send the disk sectors to be written or read as fast as possible to the host OS, which is the only one able to optimize and reorder the disk operations considering the needs of all hosted VMs and other applications that might be running. The RedHat documentation also recommends noop for guest VMs, unless they use dedicated raw partitions (not the case for Vagrant images).
1 parent 72540e6 commit 5ae85f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vagrant/centos6.ks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ timezone --utc UTC
1313
services --enabled ntpd,tuned
1414
# The biosdevname and ifnames options ensure we get "eth0" as our interface
1515
# even in environments like virtualbox that emulate a real NW card
16-
bootloader --location=mbr --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0"
16+
bootloader --location=mbr --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop"
1717
zerombr
1818
clearpart --all --drives=vda
1919

vagrant/centos7.ks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ selinux --enforcing
1212
timezone --utc UTC
1313
# The biosdevname and ifnames options ensure we get "eth0" as our interface
1414
# even in environments like virtualbox that emulate a real NW card
15-
bootloader --location=mbr --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0"
15+
bootloader --location=mbr --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop"
1616
zerombr
1717
clearpart --all --drives=vda
1818

0 commit comments

Comments
 (0)