From 46722c7296e95cc2ca2d940d1746a0073dcace37 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Feb 04 2020 08:38:00 +0000 Subject: import tuned-2.12.0-3.el8_1.1 --- diff --git a/SOURCES/tuned-2.12-sap-hana-updated-tuning.patch b/SOURCES/tuned-2.12-sap-hana-updated-tuning.patch new file mode 100644 index 0000000..134573f --- /dev/null +++ b/SOURCES/tuned-2.12-sap-hana-updated-tuning.patch @@ -0,0 +1,69 @@ +From 52156a00b590ef401b38dcc65720b344d67e86f6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= +Date: Fri, 6 Dec 2019 16:37:11 +0100 +Subject: [PATCH] sap-hana: updated tuning +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Made sap-hana profile standalone. + +Resolves: rhbz#1779821 + +Signed-off-by: Jaroslav Škarvada +--- + man/tuned-profiles-sap-hana.7 | 10 ++++++---- + profiles/sap-hana/tuned.conf | 9 ++++++++- + 2 files changed, 14 insertions(+), 5 deletions(-) + +diff --git a/man/tuned-profiles-sap-hana.7 b/man/tuned-profiles-sap-hana.7 +index 3c3e7fe..d5648a3 100644 +--- a/man/tuned-profiles-sap-hana.7 ++++ b/man/tuned-profiles-sap-hana.7 +@@ -30,10 +30,12 @@ The following profiles are provided: + + .TP + .BI "sap\-hana" +-A performance optimized profile for the SAP HANA applications. +-It is based on throughput\-performance profile. It additionally disables +-transparent hugepages, locks CPU to the low C states (by PM QoS) and tunes sysctl +-regarding semaphores. ++A performance optimized profile for the SAP HANA applications. It disables ++power saving mechanisms and enables sysctl settings that improve throughput ++performance of disk and network IO. CPU governor is set to performance and CPU ++energy performance bias is set to performance. It also disables transparent ++hugepages, locks CPU to the low C states (by PM QoS) and tunes sysctl regarding ++semaphores. + + .SH "FILES" + .nf +diff --git a/profiles/sap-hana/tuned.conf b/profiles/sap-hana/tuned.conf +index d74250b..8305f65 100644 +--- a/profiles/sap-hana/tuned.conf ++++ b/profiles/sap-hana/tuned.conf +@@ -4,10 +4,12 @@ + + [main] + summary=Optimize for SAP HANA +-include=throughput-performance + + [cpu] + force_latency=cstate.id:3|70 ++governor=performance ++energy_perf_bias=performance ++min_perf_pct=100 + + [vm] + transparent_hugepages=never +@@ -15,3 +17,8 @@ transparent_hugepages=never + [sysctl] + kernel.sem = 32000 1024000000 500 32000 + kernel.numa_balancing = 0 ++kernel.sched_min_granularity_ns = 3000000 ++kernel.sched_wakeup_granularity_ns = 4000000 ++vm.dirty_ratio = 40 ++vm.dirty_background_ratio = 10 ++vm.swappiness = 10 +-- +2.21.0 + diff --git a/SPECS/tuned.spec b/SPECS/tuned.spec index 7166b55..c8841f7 100644 --- a/SPECS/tuned.spec +++ b/SPECS/tuned.spec @@ -34,7 +34,7 @@ Summary: A dynamic adaptive system tuning daemon Name: tuned Version: 2.12.0 -Release: 3%{?prerel1}%{?dist} +Release: 3%{?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: @@ -64,6 +64,7 @@ Recommends: kernel-tools Requires: python3-syspurpose %endif Patch0: tuned-2.12-latency-as-cstate.patch +Patch1: tuned-2.12-sap-hana-updated-tuning.patch %description The tuned package contains a daemon that tunes system settings dynamically. @@ -209,6 +210,7 @@ It can be also used to fine tune your system for specific scenarios. %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 @@ -454,6 +456,10 @@ fi %{_mandir}/man7/tuned-profiles-compat.7* %changelog +* Wed Dec 11 2019 Jaroslav Škarvada - 2.12.0-3.1 +- sap-hana: updated tuning + resolves: rhbz#1780682 + * Fri Aug 16 2019 Jaroslav Škarvada - 2.12.0-3 - used C-states in latency specification related: rhbz#1737628