]> git.openstreetmap.org Git - chef.git/commitdiff
Enable request merging for NVMe devices
authorTom Hughes <tom@compton.nu>
Mon, 23 May 2016 13:41:01 +0000 (14:41 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 23 May 2016 13:41:01 +0000 (14:41 +0100)
roles/dulcy.rb
roles/karm.rb

index ef153a918f838379d2143c76ec5a17542985e369..50e4d3b2d9faf705d4200b400c58ed85a593afd7 100644 (file)
@@ -60,6 +60,15 @@ default_attributes(
         :max_children => "10"
       }
     }
+  },
+  :sysfs => {
+    :md_tune => {
+      :comment => "Enable request merging for NVMe devices",
+      :parameters => {
+        "block/nvme0n1/queue/nomerges" => "1",
+        "block/nvme1n1/queue/nomerges" => "1"
+      }
+    }
   }
 )
 
index 42b2e436a8cda31046bdb07e70a631aec58351b6..6d2f15e790f16e666ddf280fb89b7e9914266baf 100644 (file)
@@ -12,6 +12,19 @@ default_attributes(
         :hwaddress => "0c:c4:7a:a3:aa:ac"
       }
     }
+  },
+  :sysfs => {
+    :md_tune => {
+      :comment => "Enable request merging for NVMe devices",
+      :parameters => {
+        "block/nvme0n1/queue/nomerges" => "1",
+        "block/nvme1n1/queue/nomerges" => "1",
+        "block/nvme2n1/queue/nomerges" => "1",
+        "block/nvme3n1/queue/nomerges" => "1",
+        "block/nvme4n1/queue/nomerges" => "1",
+        "block/nvme5n1/queue/nomerges" => "1"
+      }
+    }
   }
 )