From e9cd914faee8d3b77c41c263d49f741ba80be62a Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 10 2018 05:51:00 +0000 Subject: import irqbalance-1.0.7-11.el7 --- diff --git a/SOURCES/irqbalance-1.0.8-Balance-correctly-IRQs-reappearing.patch b/SOURCES/irqbalance-1.0.8-Balance-correctly-IRQs-reappearing.patch new file mode 100644 index 0000000..6707a88 --- /dev/null +++ b/SOURCES/irqbalance-1.0.8-Balance-correctly-IRQs-reappearing.patch @@ -0,0 +1,37 @@ +From 93ed80181e0ce7b81bc88a67fabad1ad829fc460 Mon Sep 17 00:00:00 2001 +From: Frediano Ziglio +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 +--- + 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 + diff --git a/SPECS/irqbalance.spec b/SPECS/irqbalance.spec index 9d4e948..4cda551 100644 --- a/SPECS/irqbalance.spec +++ b/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 @@ Patch14:irqbalance-1.0.8-parse-isolcpus-and-nohz-cpus-from-sysfs.patch 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 @@ multiple CPUs for enhanced performance. %patch15 -p1 %patch16 -p1 %patch17 -p1 +%patch18 -p1 %build ./autogen.sh @@ -105,6 +107,10 @@ fi /sbin/chkconfig --del irqbalance >/dev/null 2>&1 || : %changelog +* Mon Feb 05 2018 Petr Oros - 3:1.0.7-11 +- Balance correctly IRQs reappearing +- Resolves: #1536373 + * Tue May 16 2017 Petr Oros - 3:1.0.7-10 - irqbalance node package patch - Resolves: #1444195