CentOS Sources
2018-04-10 e9cd914faee8d3b77c41c263d49f741ba80be62a
import irqbalance-1.0.7-11.el7
1 files added
1 files modified
45 ■■■■■ changed files
SOURCES/irqbalance-1.0.8-Balance-correctly-IRQs-reappearing.patch 37 ●●●●● patch | view | raw | blame | history
SPECS/irqbalance.spec 8 ●●●● patch | view | raw | blame | history
SOURCES/irqbalance-1.0.8-Balance-correctly-IRQs-reappearing.patch
New file
@@ -0,0 +1,37 @@
From 93ed80181e0ce7b81bc88a67fabad1ad829fc460 Mon Sep 17 00:00:00 2001
From: Frediano Ziglio <frediano.ziglio@citrix.com>
Date: Wed, 2 Jul 2014 12:59:34 +0100
Subject: [PATCH 1/1] Balance correctly IRQs reappearing
If IRQ disappears and reappears later (this happens frequently for Xen)
the IRQ is not balanced correctly due to overflow in irq_count (as the
counter got smaller and difference cause overflow).
Rescan if this happens fix the problem.
Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
---
 procinterrupts.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/procinterrupts.c b/procinterrupts.c
index 6a6bdaa..3476473 100644
--- a/procinterrupts.c
+++ b/procinterrupts.c
@@ -181,6 +181,14 @@ void parse_proc_interrupts(void)
             break;
         }
+        /* IRQ removed and reinserted, need restart or this will
+         * cause an overflow and IRQ won't be rebalanced again
+         */
+        if (count < info->irq_count) {
+            need_rescan = 1;
+            break;
+        }
+
         info->last_irq_count = info->irq_count;
         info->irq_count = count;
--
2.16.1
SPECS/irqbalance.spec
@@ -1,6 +1,6 @@
Name:           irqbalance
Version:        1.0.7
Release:        10%{?dist}
Release:        11%{?dist}
Epoch:          3
Summary:        IRQ balancing daemon
@@ -43,6 +43,7 @@
Patch15:irqbalance-1.0.8-Invalid-parsing-for-isolated-and-nohz_full-cpu-masks.patch
Patch16:irqbalance-1.0.9-irqbalance-set-IRQBALANCE_DEBUG-variable-implies-for.patch
Patch17:irqbalance-node-package.patch
Patch18:irqbalance-1.0.8-Balance-correctly-IRQs-reappearing.patch
%description
irqbalance is a daemon that evenly distributes IRQ load across
@@ -67,6 +68,7 @@
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%build
./autogen.sh
@@ -105,6 +107,10 @@
/sbin/chkconfig --del irqbalance >/dev/null 2>&1 || :
%changelog
* Mon Feb 05 2018 Petr Oros <poros@redhat.com> - 3:1.0.7-11
- Balance correctly IRQs reappearing
- Resolves: #1536373
* Tue May 16 2017 Petr Oros <poros@redhat.com> - 3:1.0.7-10
- irqbalance node package patch
- Resolves: #1444195