|
|
a48aee |
From 5f8ed87f36381569725c67445f12226f41861d1f Mon Sep 17 00:00:00 2001
|
|
|
a48aee |
From: Kairui Song <kasong@redhat.com>
|
|
|
a48aee |
Date: Fri, 9 Nov 2018 11:36:12 +0800
|
|
|
a48aee |
Subject: [PATCH] Update document and remove dead options
|
|
|
a48aee |
|
|
|
a48aee |
This is the stash of following three commits:
|
|
|
a48aee |
|
|
|
a48aee |
commit ea743009f69ad4800c60bf26c776ef4944c6af8b
|
|
|
a48aee |
Author: Kairui Song <kasong@redhat.com>
|
|
|
a48aee |
Date: Mon Mar 25 19:58:58 2019 +0800
|
|
|
a48aee |
|
|
|
a48aee |
Remove a duplicated word in manpage
|
|
|
a48aee |
|
|
|
a48aee |
Just noticed a warning in a manpage scan report, trivial but let's
|
|
|
a48aee |
fix it.
|
|
|
a48aee |
|
|
|
a48aee |
Signed-off-by: Kairui Song <kasong@redhat.com>
|
|
|
a48aee |
|
|
|
a48aee |
commit 0b95593b19ff13e7e271d5b0b8219e7c70bf773c
|
|
|
a48aee |
Author: Kairui Song <kasong@redhat.com>
|
|
|
a48aee |
Date: Fri Nov 9 12:26:29 2018 +0800
|
|
|
a48aee |
|
|
|
a48aee |
Update document for option --banmod and --deepestcache
|
|
|
a48aee |
|
|
|
a48aee |
'--banmod' is not documented, and '--deepestcache's alias '-c' is
|
|
|
a48aee |
missing.
|
|
|
a48aee |
|
|
|
a48aee |
Also fix an typo.
|
|
|
a48aee |
|
|
|
a48aee |
Signed-off-by: Kairui Song <kasong@redhat.com>
|
|
|
a48aee |
|
|
|
a48aee |
commit 3ae01f5bd5ef3ed3080c9b06fc63bb02cc03bf1a
|
|
|
a48aee |
Author: Kairui Song <kasong@redhat.com>
|
|
|
a48aee |
Date: Fri Nov 9 11:36:12 2018 +0800
|
|
|
a48aee |
|
|
|
a48aee |
Remove hintpolicy related options in help message
|
|
|
a48aee |
|
|
|
a48aee |
hintpolicy was dropped sometime ago so related help message should be
|
|
|
a48aee |
dropped as well.
|
|
|
a48aee |
|
|
|
a48aee |
Signed-off-by: Kairui Song <kasong@redhat.com>
|
|
|
a48aee |
|
|
|
a48aee |
Signed-off-by: Kairui Song <kasong@redhat.com>
|
|
|
a48aee |
---
|
|
|
a48aee |
irqbalance.1 | 15 ++++++++++++---
|
|
|
a48aee |
irqbalance.c | 3 +--
|
|
|
a48aee |
2 files changed, 13 insertions(+), 5 deletions(-)
|
|
|
a48aee |
|
|
|
a48aee |
diff --git a/irqbalance.1 b/irqbalance.1
|
|
|
a48aee |
index 68e3cf8..61ae35e 100644
|
|
|
a48aee |
--- a/irqbalance.1
|
|
|
a48aee |
+++ b/irqbalance.1
|
|
|
a48aee |
@@ -62,12 +62,21 @@ in an effort to prevent that CPU from waking up without need.
|
|
|
a48aee |
.B -i, --banirq=<irqnum>
|
|
|
a48aee |
Add the specified IRQ to the set of banned IRQs. irqbalance will not affect
|
|
|
a48aee |
the affinity of any IRQs on the banned list, allowing them to be specified
|
|
|
a48aee |
-manually. This option is addative and can be specified multiple times. For
|
|
|
a48aee |
+manually. This option is additive and can be specified multiple times. For
|
|
|
a48aee |
example to ban IRQs 43 and 44 from balancing, use the following command line:
|
|
|
a48aee |
.B irqbalance --banirq=43 --banirq=44
|
|
|
a48aee |
|
|
|
a48aee |
.TP
|
|
|
a48aee |
-.B --deepestcache=<integer>
|
|
|
a48aee |
+.B -m, --banmod=<module_name>
|
|
|
a48aee |
+Add the specified module to the set of banned modules, similiar to --banirq.
|
|
|
a48aee |
+irqbalance will not affect the affinity of any IRQs of given modules, allowing
|
|
|
a48aee |
+them to be specified manually. This option is additive and can be specified
|
|
|
a48aee |
+multiple times. For example to ban all IRQs of module foo and module bar from
|
|
|
a48aee |
+balancing, use the following command line:
|
|
|
a48aee |
+.B irqbalance --banmod=foo --banmod=bar
|
|
|
a48aee |
+
|
|
|
a48aee |
+.TP
|
|
|
a48aee |
+.B -c, --deepestcache=<integer>
|
|
|
a48aee |
This allows a user to specify the cache level at which irqbalance partitions
|
|
|
a48aee |
cache domains. Specifying a deeper cache may allow a greater degree of
|
|
|
a48aee |
flexibility for irqbalance to assign IRQ affinity to achieve greater performance
|
|
|
a48aee |
@@ -148,7 +157,7 @@ each assigned IRQ type, it's number, load, number of IRQs since last rebalancing
|
|
|
a48aee |
and it's class are sent. Refer to types.h file for explanation of defines.
|
|
|
a48aee |
.TP
|
|
|
a48aee |
.B setup
|
|
|
a48aee |
-Get the current value of sleep interval, mask of banned CPUs and and list of banned IRQs.
|
|
|
a48aee |
+Get the current value of sleep interval, mask of banned CPUs and list of banned IRQs.
|
|
|
a48aee |
.TP
|
|
|
a48aee |
.B settings sleep <s>
|
|
|
a48aee |
Set new value of sleep interval, <s> >= 1.
|
|
|
a48aee |
diff --git a/irqbalance.c b/irqbalance.c
|
|
|
a48aee |
index 6412447..7713cd0 100644
|
|
|
a48aee |
--- a/irqbalance.c
|
|
|
a48aee |
+++ b/irqbalance.c
|
|
|
a48aee |
@@ -84,7 +84,6 @@ struct option lopts[] = {
|
|
|
a48aee |
{"oneshot", 0, NULL, 'o'},
|
|
|
a48aee |
{"debug", 0, NULL, 'd'},
|
|
|
a48aee |
{"foreground", 0, NULL, 'f'},
|
|
|
a48aee |
- {"hintpolicy", 1, NULL, 'h'},
|
|
|
a48aee |
{"powerthresh", 1, NULL, 'p'},
|
|
|
a48aee |
{"banirq", 1 , NULL, 'i'},
|
|
|
a48aee |
{"banscript", 1, NULL, 'b'},
|
|
|
a48aee |
@@ -100,7 +99,7 @@ struct option lopts[] = {
|
|
|
a48aee |
|
|
|
a48aee |
static void usage(void)
|
|
|
a48aee |
{
|
|
|
a48aee |
- log(TO_CONSOLE, LOG_INFO, "irqbalance [--oneshot | -o] [--debug | -d] [--foreground | -f] [--journal | -j] [--hintpolicy= | -h [exact|subset|ignore]]\n");
|
|
|
a48aee |
+ log(TO_CONSOLE, LOG_INFO, "irqbalance [--oneshot | -o] [--debug | -d] [--foreground | -f] [--journal | -j]\n");
|
|
|
a48aee |
log(TO_CONSOLE, LOG_INFO, " [--powerthresh= | -p <off> | <n>] [--banirq= | -i <n>] [--banmod= | -m <module>] [--policyscript= | -l <script>]\n");
|
|
|
a48aee |
log(TO_CONSOLE, LOG_INFO, " [--pid= | -s <file>] [--deepestcache= | -c <n>] [--interval= | -t <n>]\n");
|
|
|
a48aee |
}
|
|
|
a48aee |
--
|
|
|
a48aee |
2.20.1
|
|
|
a48aee |
|