From: Grant Slater Date: Sat, 8 Feb 2014 07:38:47 +0000 (+0000) Subject: Add KVM guest sysctl tuning X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/9f27192ef7e2ad5d30cdc3eb9c892fa52dcfd1c5 Add KVM guest sysctl tuning --- diff --git a/roles/jakelong.rb b/roles/jakelong.rb index 5338778e0..ee7a14c20 100644 --- a/roles/jakelong.rb +++ b/roles/jakelong.rb @@ -26,6 +26,15 @@ default_attributes( :cache_mem => "650 MB", :cache_dir => "coss /store/squid/coss-01 15000 block-size=8192 max-size=262144 membufs=30" }, + :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", diff --git a/roles/nadder-01.rb b/roles/nadder-01.rb index d596a1a6e..235575c7e 100644 --- a/roles/nadder-01.rb +++ b/roles/nadder-01.rb @@ -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", diff --git a/roles/nadder-02.rb b/roles/nadder-02.rb index 07c2c7145..ee98b08a5 100644 --- a/roles/nadder-02.rb +++ b/roles/nadder-02.rb @@ -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", diff --git a/roles/nepomuk.rb b/roles/nepomuk.rb index 3c7d3ccf9..b852f9a94 100644 --- a/roles/nepomuk.rb +++ b/roles/nepomuk.rb @@ -22,6 +22,15 @@ default_attributes( } } }, + :sysctl => { + :kvm => { + :comment => "Tuning for KVM guest", + :parameters => { + "kernel.sched_min_granularity_ns" => 10000000, + "kernel.sched_wakeup_granularity_ns" => 15000000 + } + } + }, :squid => { :cache_mem => "7500 MB", :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80"