From a0c1a008e88ee0000ad73d0064202ab586662a12 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Wed, 1 Apr 2026 17:49:19 +0200 Subject: [PATCH] overlay coreos/config: Amend disabling real-time scheduling in sys-fs/multipath-tools Signed-off-by: Krzesimir Nowak --- .../coreos/config/env/sys-fs/multipath-tools | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/multipath-tools b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/multipath-tools index 5b835efaa3..db45af180c 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/multipath-tools +++ b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/multipath-tools @@ -2,12 +2,12 @@ cros_post_src_install_add_dropin() { mkdir -p "${D}$(systemd_get_systemunitdir)/multipathd.service.d" cat <"${D}$(systemd_get_systemunitdir)/multipathd.service.d/flatcar.conf" [Service] -# Multipathd sets itself to sched_rr with highest priority. -# Cgroups2 doesn't support realtime processes outside the root cgroup, +# Set LimitRTPRIO to zero to tell multipathd to not even attempt +# enabling the real-time scheduling. We do this, because cgroups2 +# doesn't support real-time processes outside the root cgroup - # if any such process exists then cpu controller can't be enabled. -# This poses a bit of a dilemma. -# Block realtime control for the process, but give it highest non-rt priority. -RestrictRealtime=yes -Nice=-20 +# Upstream unit already sets CPUWeight to 1000 to have a sufficient +# priority in case of normal scheduling. +LimitRTPRIO=0 EOF }