Enable NVME request merging on odin
authorTom Hughes <tom@compton.nu>
Wed, 3 Apr 2019 17:41:29 +0000 (18:41 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 3 Apr 2019 17:41:29 +0000 (18:41 +0100)
roles/odin.rb

index e31bc69..9de9c93 100644 (file)
@@ -26,6 +26,15 @@ default_attributes(
         :address => "2001:978:2:2C::172:F"
       }
     }
+  },
+  :sysfs => {
+    :md_tune => {
+      :comment => "Enable request merging for NVMe devices",
+      :parameters => {
+        "block/nvme0n1/queue/nomerges" => "1",
+        "block/nvme1n1/queue/nomerges" => "1"
+      }
+    }
   }
 )