From f4e338d7816a2709971036864b8357597fe346c5 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 01 2017 03:18:33 +0000 Subject: import irqbalance-1.0.7-10.el7 --- diff --git a/SOURCES/irqbalance-1.0.9-irqbalance-set-IRQBALANCE_DEBUG-variable-implies-for.patch b/SOURCES/irqbalance-1.0.9-irqbalance-set-IRQBALANCE_DEBUG-variable-implies-for.patch new file mode 100644 index 0000000..cba34b9 --- /dev/null +++ b/SOURCES/irqbalance-1.0.9-irqbalance-set-IRQBALANCE_DEBUG-variable-implies-for.patch @@ -0,0 +1,30 @@ +From a0811c1ad96236fefc8eebe7a79a9b86ee654892 Mon Sep 17 00:00:00 2001 +From: Petr Holasek +Date: Thu, 19 Mar 2015 14:58:35 +0100 +Subject: [PATCH 1/1] irqbalance: set IRQBALANCE_DEBUG variable implies + foreground mode + +Signed-off-by: Petr Holasek +--- + irqbalance.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/irqbalance.c b/irqbalance.c +index 29967ba..226fcc6 100644 +--- a/irqbalance.c ++++ b/irqbalance.c +@@ -269,8 +269,10 @@ int main(int argc, char** argv) + if (getenv("IRQBALANCE_ONESHOT")) + one_shot_mode=1; + +- if (getenv("IRQBALANCE_DEBUG")) ++ if (getenv("IRQBALANCE_DEBUG")) { + debug_mode=1; ++ foreground_mode=1; ++ } + + /* + * If we are't in debug mode, don't dump anything to the console +-- +2.12.2 + diff --git a/SOURCES/irqbalance-node-package.patch b/SOURCES/irqbalance-node-package.patch new file mode 100644 index 0000000..234bf3f --- /dev/null +++ b/SOURCES/irqbalance-node-package.patch @@ -0,0 +1,26 @@ +diff --git a/cputree.c b/cputree.c +index 4d09c0e..0f14cfb 100644 +--- a/cputree.c ++++ b/cputree.c +@@ -357,6 +357,8 @@ static void do_one_cpu(char *path) + + nodeid=-1; + if (numa_avail) { ++ struct topo_obj *node; ++ + dir = opendir(path); + do { + entry = readdir(dir); +@@ -368,6 +370,12 @@ static void do_one_cpu(char *path) + } + } while (entry); + closedir(dir); ++ ++ node = get_numa_node(nodeid); ++ if (node && (cpus_weight(package_mask) > cpus_weight(node->mask))) { ++ cpus_and(package_mask, package_mask, node->mask); ++ packageid = nodeid; ++ } + } + + /* diff --git a/SPECS/irqbalance.spec b/SPECS/irqbalance.spec index 6815d3c..9d4e948 100644 --- a/SPECS/irqbalance.spec +++ b/SPECS/irqbalance.spec @@ -1,6 +1,6 @@ Name: irqbalance Version: 1.0.7 -Release: 6%{?dist}.1 +Release: 10%{?dist} Epoch: 3 Summary: IRQ balancing daemon @@ -41,6 +41,8 @@ Patch12:irqbalance-1.0.8-fix-memory-leak-in-classify-code.patch Patch13:irqbalance-1.0.8-separate-cmomand-line-banned-irqs.patch 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 %description irqbalance is a daemon that evenly distributes IRQ load across @@ -63,6 +65,8 @@ multiple CPUs for enhanced performance. %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch16 -p1 +%patch17 -p1 %build ./autogen.sh @@ -101,9 +105,21 @@ fi /sbin/chkconfig --del irqbalance >/dev/null 2>&1 || : %changelog -* Tue Dec 20 2016 Petr Oros - 2:1.0.7-6.1 +* Tue May 16 2017 Petr Oros - 3:1.0.7-10 +- irqbalance node package patch +- Resolves: #1444195 + +* Tue Apr 4 2017 Petr Oros - 3:1.0.7-9 +- set IRQBALANCE_DEBUG variable implies foreground mode +- Resolves: #1361211 + +* Tue Dec 20 2016 Petr Oros - 3:1.0.7-8 +- Fix Epoch in version +- Resolves: #1393539 + +* Wed Nov 30 2016 Petr Oros - 2:1.0.7-7 - Fix Invalid parsing for isolated and nohz_full cpu masks -- Resolves: #1406291 +- Resolves: #1393539 * Tue Feb 02 2016 Petr Holasek - 2:1.0.7-6 - nohz and isolated cpus are read from sysfs (#1264130)