diff --git a/irqbalance-1.8.0-Confine-irqbalance-to-systems-where-it-is-useful.patch b/irqbalance-1.8.0-Confine-irqbalance-to-systems-where-it-is-useful.patch new file mode 100644 index 0000000..5e681d2 --- /dev/null +++ b/irqbalance-1.8.0-Confine-irqbalance-to-systems-where-it-is-useful.patch @@ -0,0 +1,26 @@ +From 188f9efc567bcaef25bde2813cdee7f952f992f9 Mon Sep 17 00:00:00 2001 +From: Pat Riehecky +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 + diff --git a/irqbalance.spec b/irqbalance.spec index 1a719e2..144ffbb 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -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