From 7c2ae1cf359902fea53d677721e448f24b8a56c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavol=20=C5=BD=C3=A1=C4=8Dik?= Date: Tue, 7 Jan 2025 14:49:37 +0100 Subject: [PATCH] Disable the amd.scheduler plug-in instance in the postgresql profile Resolves: RHEL-70470 --- tuned-2.22.1-postgresql-disable-amd-instance.patch | 11 +++++++++++ tuned.spec | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 tuned-2.22.1-postgresql-disable-amd-instance.patch diff --git a/tuned-2.22.1-postgresql-disable-amd-instance.patch b/tuned-2.22.1-postgresql-disable-amd-instance.patch new file mode 100644 index 0000000..9493f56 --- /dev/null +++ b/tuned-2.22.1-postgresql-disable-amd-instance.patch @@ -0,0 +1,11 @@ +diff --git a/profiles/postgresql/tuned.conf b/profiles/postgresql/tuned.conf +index 88da8e4..4fd3810 100644 +--- a/profiles/postgresql/tuned.conf ++++ b/profiles/postgresql/tuned.conf +@@ -55,3 +55,6 @@ sched_min_granularity_ns = 10000000 + # "cache hot" and thus less likely to be re-migrated + # (system default is 500000, i.e. 0.5 ms) + sched_migration_cost_ns = 50000000 ++ ++[scheduler.amd] ++enabled=false diff --git a/tuned.spec b/tuned.spec index b0ca158..f0e089f 100644 --- a/tuned.spec +++ b/tuned.spec @@ -104,6 +104,8 @@ Patch3: tuned-2.22.1-sap-vm-max-map-count.patch Patch4: tuned-2.21.1-CVE-2024-52337.patch # Make hdparm device checks lazy (see RHEL-71457 for details) Patch5: tuned-2.22.1-use-hdparm-lazily.patch +# Disable the amd.scheduler plug-in instance in the postgresql profile (see RHEL-70470 for details) +Patch6: tuned-2.22.1-postgresql-disable-amd-instance.patch %description The tuned package contains a daemon that tunes system settings dynamically. @@ -579,6 +581,8 @@ fi * Mon Jan 06 2025 Pavol Žáčik - 2.22.1-6 - Make hdparm device checks lazy Resolves: RHEL-71457 +- Disable the amd.scheduler plug-in instance in the postgresql profile + Resolves: RHEL-70470 * Mon Nov 18 2024 Jaroslav Škarvada - 2.22.1-5 - Added sanity checks for API methods parameters, (CVE-2024-52337)