Increase readahead on virtio block devices
authorTom Hughes <tom@compton.nu>
Fri, 31 May 2019 18:36:38 +0000 (19:36 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 31 May 2019 18:36:38 +0000 (19:36 +0100)
cookbooks/devices/templates/default/udev.rules.erb

index 9c70340..bc6f67e 100644 (file)
@@ -55,3 +55,6 @@ ACTION=="add", SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", ENV{ID_BUS}=="ata", ENV
 
 # Enable request merging for NVME devices
 ACTION=="add", SUBSYSTEM=="block", DRIVERS=="nvme", ATTR{queue/nomerges}="1"
+
+# Increase readahead on virtio block devices
+ACTION=="add", SUBSYSTEM=="block", DRIVERS=="virtio_blk", ATTR{queue/read_ahead_kb}="512"