From e9e28114036a198b311ee17dd542540f749e6a68 Mon Sep 17 00:00:00 2001 From: hejingxian 00273181 Date: Mon, 20 Jan 2020 23:20:47 +0800 Subject: [PATCH] improve irq migrate rule to avoid high irq load --- irqbalance.c | 9 +++++++-- irqbalance.h | 1 + irqlist.c | 10 +++++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/irqbalance.c b/irqbalance.c index be111f1..513ab5a 100644 --- a/irqbalance.c +++ b/irqbalance.c @@ -67,6 +67,7 @@ GMainLoop *main_loop; char *cpu_ban_string = NULL; char *banned_cpumask_from_ui = NULL; +unsigned long migrate_ratio = 0; static void sleep_approx(int seconds) { @@ -96,6 +97,7 @@ struct option lopts[] = { {"banmod", 1 , NULL, 'm'}, {"interval", 1 , NULL, 't'}, {"version", 0, NULL, 'V'}, + {"migrateval", 1, NULL, 'e'}, {0, 0, 0, 0} }; @@ -103,7 +105,7 @@ static void usage(void) { log(TO_CONSOLE, LOG_INFO, "irqbalance [--oneshot | -o] [--debug | -d] [--foreground | -f] [--journal | -j]\n"); log(TO_CONSOLE, LOG_INFO, " [--powerthresh= | -p | ] [--banirq= | -i ] [--banmod= | -m ] [--policyscript= | -l