Confine irqbalance to systems where it is useful.

Resolves: rhbz2063930

Signed-off-by: Tao Liu <ltao@redhat.com>
This commit is contained in:
Tao Liu 2022-04-08 14:24:26 +08:00
parent 27bd99336e
commit 3c91db6799
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From 188f9efc567bcaef25bde2813cdee7f952f992f9 Mon Sep 17 00:00:00 2001
From: Pat Riehecky <riehecky@fnal.gov>
Date: Mon, 4 Apr 2022 08:38:32 -0500
Subject: [PATCH] Confine irqbalance to systems where it is useful.
Systems with only one CPU cannot benefit from this service, so
don't start it when it isn't worth the resource consumption.
---
misc/irqbalance.service | 1 +
1 file changed, 1 insertion(+)
diff --git a/misc/irqbalance.service b/misc/irqbalance.service
index fcc29c2..0f79c3e 100644
--- a/misc/irqbalance.service
+++ b/misc/irqbalance.service
@@ -3,6 +3,7 @@ Description=irqbalance daemon
Documentation=man:irqbalance(1)
Documentation=https://github.com/Irqbalance/irqbalance
ConditionVirtualization=!container
+ConditionCPUs=>1
[Service]
EnvironmentFile=-/usr/lib/irqbalance/defaults.env
--
2.33.1

View File

@ -26,6 +26,7 @@ ExcludeArch: s390 s390x
Patch1: irqbalance-1.8.0-drop-NoNewPrivs-from-irqbalance-service.patch
Patch2: irqbalance-1.8.0-Disable-the-communication-socket-when-UI-is-disabled.patch
Patch3: irqbalance-1.8.0-Drop-CapabilityBoundingSet-from-irqbalance-service.patch
Patch4: irqbalance-1.8.0-Confine-irqbalance-to-systems-where-it-is-useful.patch
%description
irqbalance is a daemon that evenly distributes IRQ load across
@ -36,6 +37,7 @@ multiple CPUs for enhanced performance.
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
./autogen.sh