]> git.openstreetmap.org Git - chef.git/blobdiff - roles/nadder-01.rb
Add KVM guest sysctl tuning
[chef.git] / roles / nadder-01.rb
index d596a1a6e54f849a87ea8f3befc071ce1041dad0..235575c7ec7f8ef59218270a5d9c90e9d59e80c1 100644 (file)
@@ -14,6 +14,15 @@ default_attributes(
       }
     }
   },
+  :sysctl => {
+    :kvm => {
+      :comment => "Tuning for KVM guest",
+      :parameters => { 
+        "kernel.sched_min_granularity_ns" => 10000000,
+        "kernel.sched_wakeup_granularity_ns" => 15000000
+      }
+    }
+  },
   :sysfs => {
     :hdd_tune => {
       :comment => "Tune the queue for improved performance",