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 9c703409dc82e0d1d087272a6bcaef367b7cc778..bc6f67eb4aa2215a3a925b438c0a7ae2014106b9 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"