]> git.openstreetmap.org Git - chef.git/blobdiff - roles/nadder-02.rb
Add KVM guest sysctl tuning
[chef.git] / roles / nadder-02.rb
index 07c2c71457fcb2468cfc76d305cef40ca2c0e165..ee98b08a58de2dfbb789d53cd0f7b8a1235555df 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",