bb806b
From 05739d0719e3fc8a1cb0954f0b410e429be5d7f1 Mon Sep 17 00:00:00 2001
bb806b
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com>
bb806b
Date: Wed, 7 Apr 2021 19:55:09 +0200
bb806b
Subject: [PATCH] mssql: update profile to be in sync with MS recommendations
bb806b
MIME-Version: 1.0
bb806b
Content-Type: text/plain; charset=UTF-8
bb806b
Content-Transfer-Encoding: 8bit
bb806b
bb806b
Resolves: rhbz#1942733
bb806b
bb806b
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
bb806b
---
bb806b
 profiles/mssql/tuned.conf | 17 +++++++++++++++--
bb806b
 1 file changed, 15 insertions(+), 2 deletions(-)
bb806b
bb806b
diff --git a/profiles/mssql/tuned.conf b/profiles/mssql/tuned.conf
bb806b
index 35e208a8..1213a0cb 100644
bb806b
--- a/profiles/mssql/tuned.conf
bb806b
+++ b/profiles/mssql/tuned.conf
bb806b
@@ -6,11 +6,24 @@
bb806b
 summary=Optimize for MS SQL Server
bb806b
 include=throughput-performance
bb806b
 
bb806b
+[cpu]
bb806b
+force_latency=5
bb806b
+
bb806b
 [vm]
bb806b
-transparent_hugepage.defrag=always
bb806b
+# For multi-instance SQL deployments use 'madvise' instead of 'always'
bb806b
+transparent_hugepages=always
bb806b
 
bb806b
 [sysctl]
bb806b
-vm.max_map_count=800000
bb806b
+vm.swappiness=1
bb806b
+vm.dirty_background_ratio=3
bb806b
+vm.dirty_ratio=80
bb806b
+vm.dirty_expire_centisecs=500
bb806b
+vm.dirty_writeback_centisecs=100
bb806b
+vm.max_map_count=1600000
bb806b
+net.core.rmem_default=262144
bb806b
+net.core.rmem_max=4194304
bb806b
+net.core.wmem_default=262144
bb806b
+net.core.wmem_max=1048576
bb806b
 kernel.numa_balancing=0
bb806b
 kernel.sched_latency_ns=60000000
bb806b
 kernel.sched_min_granularity_ns=15000000