From bb806bc160a08116bdd6dd8482b222c26535f91b Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 21 2021 10:14:42 +0000 Subject: import tuned-2.15.0-2.el8_4.1 --- diff --git a/SOURCES/tuned-2.15.0-mssql-fix.patch b/SOURCES/tuned-2.15.0-mssql-fix.patch new file mode 100644 index 0000000..5804de8 --- /dev/null +++ b/SOURCES/tuned-2.15.0-mssql-fix.patch @@ -0,0 +1,46 @@ +From 05739d0719e3fc8a1cb0954f0b410e429be5d7f1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= +Date: Wed, 7 Apr 2021 19:55:09 +0200 +Subject: [PATCH] mssql: update profile to be in sync with MS recommendations +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Resolves: rhbz#1942733 + +Signed-off-by: Jaroslav Škarvada +--- + profiles/mssql/tuned.conf | 17 +++++++++++++++-- + 1 file changed, 15 insertions(+), 2 deletions(-) + +diff --git a/profiles/mssql/tuned.conf b/profiles/mssql/tuned.conf +index 35e208a8..1213a0cb 100644 +--- a/profiles/mssql/tuned.conf ++++ b/profiles/mssql/tuned.conf +@@ -6,11 +6,24 @@ + summary=Optimize for MS SQL Server + include=throughput-performance + ++[cpu] ++force_latency=5 ++ + [vm] +-transparent_hugepage.defrag=always ++# For multi-instance SQL deployments use 'madvise' instead of 'always' ++transparent_hugepages=always + + [sysctl] +-vm.max_map_count=800000 ++vm.swappiness=1 ++vm.dirty_background_ratio=3 ++vm.dirty_ratio=80 ++vm.dirty_expire_centisecs=500 ++vm.dirty_writeback_centisecs=100 ++vm.max_map_count=1600000 ++net.core.rmem_default=262144 ++net.core.rmem_max=4194304 ++net.core.wmem_default=262144 ++net.core.wmem_max=1048576 + kernel.numa_balancing=0 + kernel.sched_latency_ns=60000000 + kernel.sched_min_granularity_ns=15000000 diff --git a/SPECS/tuned.spec b/SPECS/tuned.spec index 3543252..7c552a3 100644 --- a/SPECS/tuned.spec +++ b/SPECS/tuned.spec @@ -34,7 +34,7 @@ Summary: A dynamic adaptive system tuning daemon Name: tuned Version: 2.15.0 -Release: 2%{?prerel1}%{?dist} +Release: 2%{?prerel1}%{?dist}.1 License: GPLv2+ Source0: https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prerel2}/%{name}-%{version}%{?prerel2}.tar.gz # RHEL-8 specific recommend.conf: @@ -76,6 +76,7 @@ Recommends: kmod Requires: python3-syspurpose %endif Patch0: tuned-2.15.0-netdev-queue-count.patch +Patch1: tuned-2.15.0-mssql-fix.patch %description The tuned package contains a daemon that tunes system settings dynamically. @@ -231,6 +232,7 @@ Additional tuned profile(s) targeted to PostgreSQL server loads. %prep %setup -q -n %{name}-%{version}%{?prerel2} %patch0 -p1 +%patch1 -p1 # Replace the upstream recommend.conf with a RHEL-8-specific one rm -f recommend.conf @@ -512,6 +514,10 @@ fi %{_mandir}/man7/tuned-profiles-postgresql.7* %changelog +* Wed Apr 21 2021 Jaroslav Škarvada - 2.15.0-2.1 +- updated mssql profile + resolves: rhbz#1945617 + * Fri Feb 19 2021 Jaroslav Škarvada - 2.15.0-2 - realtime: added support for netdev_queue_count and extended plugin_net resolves: rhbz#1846767