Compare commits

..

No commits in common. "c8" and "imports/c8/tuned-2.20.0-1.el8" have entirely different histories.

7 changed files with 24 additions and 195 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/tuned-2.22.1.tar.gz SOURCES/tuned-2.20.0.tar.gz

View File

@ -1 +1 @@
60e206fe73ea537e64141f92b331f65879766f97 SOURCES/tuned-2.22.1.tar.gz 6a6c9a91ab1e556b884965432895cdf64ebd6016 SOURCES/tuned-2.20.0.tar.gz

View File

@ -1,5 +1,5 @@
diff --git a/profiles/cpu-partitioning/script.sh b/profiles/cpu-partitioning/script.sh diff --git a/profiles/cpu-partitioning/script.sh b/profiles/cpu-partitioning/script.sh
index ec422ca..cb378b7 100755 index 84e04fd..8677050 100755
--- a/profiles/cpu-partitioning/script.sh --- a/profiles/cpu-partitioning/script.sh
+++ b/profiles/cpu-partitioning/script.sh +++ b/profiles/cpu-partitioning/script.sh
@@ -2,6 +2,38 @@ @@ -2,6 +2,38 @@
@ -60,7 +60,7 @@ index ec422ca..cb378b7 100755
} }
diff --git a/profiles/cpu-partitioning/tuned.conf b/profiles/cpu-partitioning/tuned.conf diff --git a/profiles/cpu-partitioning/tuned.conf b/profiles/cpu-partitioning/tuned.conf
index 11f03cf..a682c9c 100644 index 979e40b..842e2bd 100644
--- a/profiles/cpu-partitioning/tuned.conf --- a/profiles/cpu-partitioning/tuned.conf
+++ b/profiles/cpu-partitioning/tuned.conf +++ b/profiles/cpu-partitioning/tuned.conf
@@ -35,8 +35,6 @@ no_balance_cores_expanded=${f:cpulist_unpack:${no_balance_cores}} @@ -35,8 +35,6 @@ no_balance_cores_expanded=${f:cpulist_unpack:${no_balance_cores}}
@ -69,10 +69,10 @@ index 11f03cf..a682c9c 100644
-cmd_isolcpus=${f:regex_search_ternary:${no_balance_cores}:\s*[0-9]: isolcpus=${no_balance_cores}:} -cmd_isolcpus=${f:regex_search_ternary:${no_balance_cores}:\s*[0-9]: isolcpus=${no_balance_cores}:}
- -
[sysfs] [sysctl]
/sys/bus/workqueue/devices/writeback/cpumask = ${not_isolated_cpumask} kernel.hung_task_timeout_secs = 600
/sys/devices/virtual/workqueue/cpumask = ${not_isolated_cpumask} kernel.nmi_watchdog = 0
@@ -62,4 +60,4 @@ priority=10 @@ -68,4 +66,4 @@ priority=10
initrd_remove_dir=True initrd_remove_dir=True
initrd_dst_img=tuned-initrd.img initrd_dst_img=tuned-initrd.img
initrd_add_dir=${tmpdir} initrd_add_dir=${tmpdir}

View File

@ -1,14 +1,13 @@
diff --git a/profiles/latency-performance/tuned.conf b/profiles/latency-performance/tuned.conf diff --git a/profiles/latency-performance/tuned.conf b/profiles/latency-performance/tuned.conf
index 1dec690..e592138 100644 index d200b5c..877229f 100644
--- a/profiles/latency-performance/tuned.conf --- a/profiles/latency-performance/tuned.conf
+++ b/profiles/latency-performance/tuned.conf +++ b/profiles/latency-performance/tuned.conf
@@ -35,3 +35,17 @@ vm.dirty_background_ratio=3 @@ -32,3 +32,16 @@ vm.dirty_background_ratio=3
# 100 tells the kernel to aggressively swap processes out of physical memory # 100 tells the kernel to aggressively swap processes out of physical memory
# and move them to swap cache # and move them to swap cache
vm.swappiness=10 vm.swappiness=10
+ +
+[scheduler] +[scheduler]
+runtime=0
+# ktune sysctl settings for rhel6 servers, maximizing i/o throughput +# ktune sysctl settings for rhel6 servers, maximizing i/o throughput
+# +#
+# Minimal preemption granularity for CPU-bound tasks: +# Minimal preemption granularity for CPU-bound tasks:
@ -21,28 +20,26 @@ index 1dec690..e592138 100644
+# (system default is 500000, i.e. 0.5 ms) +# (system default is 500000, i.e. 0.5 ms)
+sched_migration_cost_ns = 5000000 +sched_migration_cost_ns = 5000000
diff --git a/profiles/sap-hana/tuned.conf b/profiles/sap-hana/tuned.conf diff --git a/profiles/sap-hana/tuned.conf b/profiles/sap-hana/tuned.conf
index aeecf53..1b15ea3 100644 index aeecf53..8dcee57 100644
--- a/profiles/sap-hana/tuned.conf --- a/profiles/sap-hana/tuned.conf
+++ b/profiles/sap-hana/tuned.conf +++ b/profiles/sap-hana/tuned.conf
@@ -20,3 +20,8 @@ kernel.numa_balancing = 0 @@ -20,3 +20,7 @@ kernel.numa_balancing = 0
vm.dirty_ratio = 40 vm.dirty_ratio = 40
vm.dirty_background_ratio = 10 vm.dirty_background_ratio = 10
vm.swappiness = 10 vm.swappiness = 10
+ +
+[scheduler] +[scheduler]
+runtime=0
+sched_min_granularity_ns = 3000000 +sched_min_granularity_ns = 3000000
+sched_wakeup_granularity_ns = 4000000 +sched_wakeup_granularity_ns = 4000000
diff --git a/profiles/throughput-performance/tuned.conf b/profiles/throughput-performance/tuned.conf diff --git a/profiles/throughput-performance/tuned.conf b/profiles/throughput-performance/tuned.conf
index e4e832f..3d9c42f 100644 index 62a7322..7c55fb2 100644
--- a/profiles/throughput-performance/tuned.conf --- a/profiles/throughput-performance/tuned.conf
+++ b/profiles/throughput-performance/tuned.conf +++ b/profiles/throughput-performance/tuned.conf
@@ -67,9 +67,33 @@ vm.swappiness=10 @@ -63,9 +63,31 @@ vm.swappiness=10
# on older kernels # on older kernels
net.core.somaxconn=>2048 net.core.somaxconn=>2048
+[scheduler] +[scheduler]
+runtime=0
+# ktune sysctl settings for rhel6 servers, maximizing i/o throughput +# ktune sysctl settings for rhel6 servers, maximizing i/o throughput
+# +#
+# Minimal preemption granularity for CPU-bound tasks: +# Minimal preemption granularity for CPU-bound tasks:
@ -69,19 +66,17 @@ index e4e832f..3d9c42f 100644
+type=scheduler +type=scheduler
+uname_regex=x86_64 +uname_regex=x86_64
+cpuinfo_regex=${amd_cpuinfo_regex} +cpuinfo_regex=${amd_cpuinfo_regex}
+runtime=0
+sched_migration_cost_ns=5000000 +sched_migration_cost_ns=5000000
diff --git a/profiles/virtual-host/tuned.conf b/profiles/virtual-host/tuned.conf diff --git a/profiles/virtual-host/tuned.conf b/profiles/virtual-host/tuned.conf
index 5301d9f..24d0fb4 100644 index 5301d9f..74a5fb0 100644
--- a/profiles/virtual-host/tuned.conf --- a/profiles/virtual-host/tuned.conf
+++ b/profiles/virtual-host/tuned.conf +++ b/profiles/virtual-host/tuned.conf
@@ -14,3 +14,10 @@ vm.dirty_background_ratio = 5 @@ -14,3 +14,9 @@ vm.dirty_background_ratio = 5
[cpu] [cpu]
# Setting C3 state sleep mode/power savings # Setting C3 state sleep mode/power savings
force_latency=cstate.id_no_zero:3|70 force_latency=cstate.id_no_zero:3|70
+ +
+[scheduler] +[scheduler]
+runtime=0
+# The total time the scheduler will consider a migrated process +# The total time the scheduler will consider a migrated process
+# "cache hot" and thus less likely to be re-migrated +# "cache hot" and thus less likely to be re-migrated
+# (system default is 500000, i.e. 0.5 ms) +# (system default is 500000, i.e. 0.5 ms)

View File

@ -1,54 +0,0 @@
From 7557cf975282326cdbfe55b7b803d8075ff37cba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com>
Date: Tue, 12 Mar 2024 20:25:43 +0100
Subject: [PATCH] epyc-eda: added new profile for EDA compute workloads on AMD
EPYC CPUs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
---
man/tuned-profiles.7 | 4 ++++
profiles/epyc-eda/tuned.conf | 14 ++++++++++++++
2 files changed, 18 insertions(+)
create mode 100644 profiles/epyc-eda/tuned.conf
diff --git a/man/tuned-profiles.7 b/man/tuned-profiles.7
index 10cad7b..600e8bb 100644
--- a/man/tuned-profiles.7
+++ b/man/tuned-profiles.7
@@ -141,6 +141,10 @@ profiles (e.g. throughput\-performance profile), example:
Profile optimized for AWS EC2 instances. It is based on the
throughput\-performance profile.
+.TP
+.BI "epyc-eda"
+Profile optimized for EDA compute workloads on AMD EPYC CPUs.
+
.SH "FILES"
.nf
.I /etc/tuned/*
diff --git a/profiles/epyc-eda/tuned.conf b/profiles/epyc-eda/tuned.conf
new file mode 100644
index 0000000..482d404
--- /dev/null
+++ b/profiles/epyc-eda/tuned.conf
@@ -0,0 +1,14 @@
+#
+# tuned configuration
+#
+
+[main]
+summary=Optimize for EDA compute workloads on AMD EPYC CPUs
+description=Configures virtual memory, CPU governors, and network settings for EDA compute workloads.
+include=throughput-performance
+
+# AMD
+[scheduler.amd]
+type=scheduler
+#Allow processes to rapidly move between cores to avoid idle time and maximize CPU usage
+sched_migration_cost_ns=10000
--
2.44.0

View File

@ -1,28 +0,0 @@
From 04ead944fdf640ed986331179e533542efc934c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com>
Date: Mon, 8 Apr 2024 11:03:47 +0200
Subject: [PATCH] sap-netweaver: increased vm.max_map_count
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Resolves: RHEL-31757
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
---
profiles/sap-netweaver/tuned.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/profiles/sap-netweaver/tuned.conf b/profiles/sap-netweaver/tuned.conf
index a1cfd17..81c4d44 100644
--- a/profiles/sap-netweaver/tuned.conf
+++ b/profiles/sap-netweaver/tuned.conf
@@ -10,4 +10,4 @@ include=throughput-performance
kernel.sem = 32000 1024000000 500 32000
kernel.shmall = 18446744073692774399
kernel.shmmax = 18446744073692774399
-vm.max_map_count = 2000000
+vm.max_map_count = 2147483647
--
2.44.0

View File

@ -34,8 +34,8 @@
Summary: A dynamic adaptive system tuning daemon Summary: A dynamic adaptive system tuning daemon
Name: tuned Name: tuned
Version: 2.22.1 Version: 2.20.0
Release: 4%{?prerel1}%{?dist}.1 Release: 1%{?prerel1}%{?dist}
License: GPLv2+ License: GPLv2+
Source0: https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prerel2}/%{name}-%{version}%{?prerel2}.tar.gz Source0: https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prerel2}/%{name}-%{version}%{?prerel2}.tar.gz
# RHEL-8 specific recommend.conf: # RHEL-8 specific recommend.conf:
@ -94,13 +94,9 @@ Requires: python3-syspurpose
%endif %endif
%endif %endif
# Revert upstream profiles changes which have not been approved for RHEL-8 (yet) # Revert upstream profiles changes which have not been approved for RHEL-8 (yet)
Patch0: tuned-2.22.0-rhel-8-profiles.patch Patch0: tuned-2.20.0-rhel-8-profiles.patch
# Revert no balancing cores to use SD_LOAD_BALANCE (see rhbz#1874596 for details) # Revert no balancing cores to use SD_LOAD_BALANCE (see rhbz#1874596 for details)
Patch1: tuned-2.21.0-sd-load-balance.patch Patch1: tuned-2.18.0-sd-load-balance.patch
# epyc-eda TuneD profile only for RHEL-8 (see RHEL-27528 for details)
Patch2: tuned-2.22.1-profile-epyc-eda.patch
# Update vm.max_map_count in the sap-netweaver profile (see RHEL-32124 for details)
Patch3: tuned-2.22.1-sap-vm-max-map-count.patch
%description %description
The tuned package contains a daemon that tunes system settings dynamically. The tuned package contains a daemon that tunes system settings dynamically.
@ -259,17 +255,6 @@ Requires: %{name} = %{version}
%description profiles-openshift %description profiles-openshift
Additional TuneD profile(s) optimized for OpenShift. Additional TuneD profile(s) optimized for OpenShift.
%package ppd
Summary: PPD compatibility daemon
Requires: %{name} = %{version}
# The compatibility daemon is swappable for power-profiles-daemon
Provides: ppd-service
Conflicts: ppd-service
%description ppd
An API translation daemon that allows applications to easily transition
to TuneD from power-profiles-daemon (PPD).
%prep %prep
%autosetup -p1 -n %{name}-%{version}%{?prerel2} %autosetup -p1 -n %{name}-%{version}%{?prerel2}
@ -286,7 +271,9 @@ make html %{make_python_arg}
%install %install
make install DESTDIR=%{buildroot} DOCDIR=%{docdir} %{make_python_arg} make install DESTDIR=%{buildroot} DOCDIR=%{docdir} %{make_python_arg}
make install-ppd DESTDIR=%{buildroot} DOCDIR=%{docdir} %{make_python_arg} %if 0%{?rhel}
sed -i 's/\(dynamic_tuning[ \t]*=[ \t]*\).*/\10/' %{buildroot}%{_sysconfdir}/tuned/tuned-main.conf
%endif
%if ! 0%{?rhel} %if ! 0%{?rhel}
# manual # manual
@ -423,7 +410,6 @@ fi
%exclude %{_prefix}/lib/tuned/spindown-disk %exclude %{_prefix}/lib/tuned/spindown-disk
%exclude %{_prefix}/lib/tuned/sap-netweaver %exclude %{_prefix}/lib/tuned/sap-netweaver
%exclude %{_prefix}/lib/tuned/sap-hana %exclude %{_prefix}/lib/tuned/sap-hana
%exclude %{_prefix}/lib/tuned/sap-hana-kvm-guest
%exclude %{_prefix}/lib/tuned/mssql %exclude %{_prefix}/lib/tuned/mssql
%exclude %{_prefix}/lib/tuned/oracle %exclude %{_prefix}/lib/tuned/oracle
%exclude %{_prefix}/lib/tuned/atomic-host %exclude %{_prefix}/lib/tuned/atomic-host
@ -448,6 +434,7 @@ fi
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/post_loaded_profile %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/post_loaded_profile
%config(noreplace) %{_sysconfdir}/tuned/tuned-main.conf %config(noreplace) %{_sysconfdir}/tuned/tuned-main.conf
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/bootcmdline %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/bootcmdline
%{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf
%verify(not size mtime md5) %{_sysconfdir}/modprobe.d/tuned.conf %verify(not size mtime md5) %{_sysconfdir}/modprobe.d/tuned.conf
%{_tmpfilesdir}/tuned.conf %{_tmpfilesdir}/tuned.conf
%{_unitdir}/tuned.service %{_unitdir}/tuned.service
@ -459,7 +446,6 @@ fi
%{_mandir}/man8/tuned* %{_mandir}/man8/tuned*
%dir %{_datadir}/tuned %dir %{_datadir}/tuned
%{_datadir}/tuned/grub2 %{_datadir}/tuned/grub2
%{_datadir}/dbus-1/system.d/com.redhat.tuned.conf
%{_datadir}/polkit-1/actions/com.redhat.tuned.policy %{_datadir}/polkit-1/actions/com.redhat.tuned.policy
%ghost %{_sysconfdir}/modprobe.d/kvm.rt.tuned.conf %ghost %{_sysconfdir}/modprobe.d/kvm.rt.tuned.conf
%{_prefix}/lib/kernel/install.d/92-tuned.install %{_prefix}/lib/kernel/install.d/92-tuned.install
@ -499,7 +485,6 @@ fi
%files profiles-sap-hana %files profiles-sap-hana
%{_prefix}/lib/tuned/sap-hana %{_prefix}/lib/tuned/sap-hana
%{_prefix}/lib/tuned/sap-hana-kvm-guest
%{_mandir}/man7/tuned-profiles-sap-hana.7* %{_mandir}/man7/tuned-profiles-sap-hana.7*
%files profiles-mssql %files profiles-mssql
@ -564,76 +549,7 @@ fi
%{_prefix}/lib/tuned/openshift-node %{_prefix}/lib/tuned/openshift-node
%{_mandir}/man7/tuned-profiles-openshift.7* %{_mandir}/man7/tuned-profiles-openshift.7*
%files ppd
%{_sbindir}/tuned-ppd
%{_unitdir}/tuned-ppd.service
%{_datadir}/dbus-1/system-services/net.hadess.PowerProfiles.service
%{_datadir}/dbus-1/system.d/net.hadess.PowerProfiles.conf
%{_datadir}/polkit-1/actions/net.hadess.PowerProfiles.policy
%config(noreplace) %{_sysconfdir}/tuned/ppd.conf
%changelog %changelog
* Fri May 3 2024 Pavol Žáčik <pzacik@redhat.com> - 2.22.1-4.1
- sap-netweaver: increase vm.max_map_count
resolves: RHEL-32124
* Wed Mar 13 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.22.1-4
- release bump due to broken c8s
related: RHEL-27528
* Wed Mar 13 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.22.1-3
- release bump
related: RHEL-27528
* Tue Mar 12 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.22.1-2
- profiles: added epyc-eda profile
resolves: RHEL-27528
* Thu Feb 22 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.22.1-1
- new release
- rebased tuned to latest upstream
related: RHEL-17119
- renamed intel_uncore plugin to uncore
- network-throughput: increased net.ipv4.tcp_rmem default value
* Fri Feb 16 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.22.0-1
- new release
- rebased tuned to latest upstream
related: RHEL-17119
- lower CPU usage by using runtime=0 in profiles using scheduler plugin
resolves: RHEL-6869
* Fri Feb 9 2024 Jaroslav Škarvada <jskarvad@redhat.com> - 2.22.0-0.1.rc1
- new release
- rebased tuned to latest upstream
resolves: RHEL-17119
- print all arguments of failing commands in error messages
- plugin_sysctl: added support for sysctl names with slash
- tuned-adm: added support for moving devices between plugin instances
- api: added methods for retrieval of plugin instances and devices
- plugin_cpu: amd-pstate mentioned instead of just intel_pstate
- hotplug: do not report ENOENT errors on device remove
- plugin_sysctl: expand variables when reporting overrides
- plugin_acpi: new plugin which handles ACPI platform_profile
- plugin_bootloader: skip calling rpm-ostree kargs in no-op case
- plugin_cpu: support cstate settings of pm_qos_resume_latency_us
- scheduler: add option for ignoring IRQs affinity
- plugin_intel_uncore: new plugin for uncore setting
* Tue Aug 29 2023 Jaroslav Škarvada <jskarvad@redhat.com> - 2.21.0-1
- new release
- api: fixed stop method not to require any parameter
resolves: rhbz#2235638
* Sun Aug 20 2023 Jaroslav Škarvada <jskarvad@redhat.com> - 2.21.0-0.1.rc1
- new release
- rebased tuned to latest upstream
resolves: rhbz#2182119
- sap-hana: new profile sap-hana-kvm-guest
resolves: rhbz#2173740
- serialized SIGHUP handler to prevent possible bootcmdline corruption
resolves: rhbz#2215298
* Fri Feb 17 2023 Jaroslav Škarvada <jskarvad@redhat.com> - 2.20.0-1 * Fri Feb 17 2023 Jaroslav Škarvada <jskarvad@redhat.com> - 2.20.0-1
- new release - new release
- rebased tuned to latest upstream - rebased tuned to latest upstream