Blame irqbalance.1

Packit 9eaa09
.de Sh \" Subsection
Packit 9eaa09
.br
Packit 9eaa09
.if t .Sp
Packit 9eaa09
.ne 5
Packit 9eaa09
.PP
Packit 9eaa09
\fB\\$1\fR
Packit 9eaa09
.PP
Packit 9eaa09
..
Packit 9eaa09
.de Sp \" Vertical space (when we can't use .PP)
Packit 9eaa09
.if t .sp .5v
Packit 9eaa09
.if n .sp
Packit 9eaa09
..
Packit 9eaa09
.de Ip \" List item
Packit 9eaa09
.br
Packit 9eaa09
.ie \\n(.$>=3 .ne \\$3
Packit 9eaa09
.el .ne 3
Packit 9eaa09
.IP "\\$1" \\$2
Packit 9eaa09
..
Packit 9eaa09
.TH "IRQBALANCE" 1 "Dec 2006" "Linux" "irqbalance"
Packit 9eaa09
.SH NAME
Packit 9eaa09
irqbalance \- distribute hardware interrupts across processors on a multiprocessor system
Packit 9eaa09
.SH "SYNOPSIS"
Packit 9eaa09
Packit 9eaa09
.nf
Packit 9eaa09
\fBirqbalance\fR
Packit 9eaa09
.fi
Packit 9eaa09
Packit 9eaa09
.SH "DESCRIPTION"
Packit 9eaa09
Packit 9eaa09
.PP
Packit 9eaa09
The purpose of \fBirqbalance\fR is to distribute hardware interrupts across
Packit 9eaa09
processors on a multiprocessor system in order to increase performance\&.
Packit 9eaa09
Packit 9eaa09
.SH "OPTIONS"
Packit 9eaa09
Packit 9eaa09
.TP
Packit 9eaa09
.B -o, --oneshot
Packit 9eaa09
Causes irqbalance to be run once, after which the daemon exits.
Packit 9eaa09
.TP
Packit 9eaa09
Packit 9eaa09
.B -d, --debug
Packit 9eaa09
Causes irqbalance to print extra debug information.  Implies --foreground.
Packit 9eaa09
Packit 9eaa09
.TP
Packit 9eaa09
.B -f, --foreground
Packit 9eaa09
Causes irqbalance to run in the foreground (without --debug).
Packit 9eaa09
Packit 9eaa09
.TP
Packit 9eaa09
.B -j, --journal
Packit 9eaa09
Enables log output optimized for systemd-journal.
Packit 9eaa09
Packit 9eaa09
.TP
Packit 9eaa09
.B -p, --powerthresh=<threshold>
Packit 9eaa09
Set the threshold at which we attempt to move a CPU into powersave mode
Packit 9eaa09
If more than <threshold> CPUs are more than 1 standard deviation below the
Packit 9eaa09
average CPU softirq workload, and no CPUs are more than 1 standard deviation
Packit 9eaa09
above (and have more than 1 IRQ assigned to them), attempt to place 1 CPU in
Packit 9eaa09
powersave mode.  In powersave mode, a CPU will not have any IRQs balanced to it,
Packit 9eaa09
in an effort to prevent that CPU from waking up without need.
Packit 9eaa09
Packit 9eaa09
.TP
Packit 9eaa09
.B -i, --banirq=<irqnum>
Packit 9eaa09
Add the specified IRQ to the set of banned IRQs. irqbalance will not affect
Packit 9eaa09
the affinity of any IRQs on the banned list, allowing them to be specified
Packit 9eaa09
manually.  This option is addative and can be specified multiple times. For
Packit 9eaa09
example to ban IRQs 43 and 44 from balancing, use the following command line:
Packit 9eaa09
.B irqbalance --banirq=43 --banirq=44
Packit 9eaa09
Packit 9eaa09
.TP
Packit 9eaa09
.B --deepestcache=<integer>
Packit 9eaa09
This allows a user to specify the cache level at which irqbalance partitions
Packit 9eaa09
cache domains.  Specifying a deeper cache may allow a greater degree of
Packit 9eaa09
flexibility for irqbalance to assign IRQ affinity to achieve greater performance
Packit 9eaa09
increases, but setting a cache depth too large on some systems (specifically
Packit 9eaa09
where all CPUs on a system share the deepest cache level), will cause irqbalance
Packit 9eaa09
to see balancing as unnecessary.
Packit 9eaa09
.B irqbalance --deepestcache=2
Packit 9eaa09
.P
Packit 9eaa09
The default value for deepestcache is 2.
Packit 9eaa09
Packit 9eaa09
.TP
Packit 9eaa09
.B -l, --policyscript=<script>
Packit 9eaa09
When specified, the referenced script will execute once for each discovered IRQ,
Packit 9eaa09
with the sysfs device path and IRQ number passed as arguments.  Note that the
Packit 9eaa09
device path argument will point to the parent directory from which the IRQ
Packit 9eaa09
attributes directory may be directly opened.
Packit 9eaa09
The script may specify zero or more key=value pairs that will guide irqbalance in
Packit 9eaa09
the management of that IRQ.  Key=value pairs are printed by the script on stdout
Packit 9eaa09
and will be captured and interpreted by irqbalance.  Irqbalance expects a zero
Packit 9eaa09
exit code from the provided utility.  Recognized key=value pairs are:
Packit 9eaa09
.TP
Packit 9eaa09
.I ban=[true | false]
Packit 9eaa09
.TP
Packit 9eaa09
Directs irqbalance to exclude the passed in IRQ from balancing.
Packit 9eaa09
.TP
Packit 9eaa09
.I balance_level=[none | package | cache | core]
Packit 9eaa09
This allows a user to override the balance level of a given IRQ.  By default the
Packit 9eaa09
balance level is determined automatically based on the pci device class of the
Packit 9eaa09
device that owns the IRQ.
Packit 9eaa09
.TP
Packit 9eaa09
.I numa_node=<integer>
Packit 9eaa09
This allows a user to override the NUMA node that sysfs indicates a given device
Packit 9eaa09
IRQ is local to.  Often, systems will not specify this information in ACPI, and as a
Packit 9eaa09
result devices are considered equidistant from all NUMA nodes in a system.
Packit 9eaa09
This option allows for that hardware provided information to be overridden, so
Packit 9eaa09
that irqbalance can bias IRQ affinity for these devices toward its most local
Packit 9eaa09
node.  Note that specifying a -1 here forces irqbalance to consider an interrupt
Packit 9eaa09
from a device to be equidistant from all nodes.
Packit 9eaa09
.TP
Packit 9eaa09
.B -s, --pid=<file>
Packit 9eaa09
Have irqbalance write its process id to the specified file.  By default no
Packit 9eaa09
pidfile is written.  The written pidfile is automatically unlinked when
Packit 9eaa09
irqbalance exits. It is ignored when used with --debug or --foreground.
Packit 9eaa09
.TP
Packit 9eaa09
.B -t, --interval=<time>
Packit 9eaa09
Set the measurement time for irqbalance.  irqbalance will sleep for <time>
Packit 9eaa09
seconds between samples of the irq load on the system cpus. Defaults to 10.
Packit 9eaa09
.SH "ENVIRONMENT VARIABLES"
Packit 9eaa09
.TP
Packit 9eaa09
.B IRQBALANCE_ONESHOT
Packit 9eaa09
Same as --oneshot.
Packit 9eaa09
Packit 9eaa09
.TP
Packit 9eaa09
.B IRQBALANCE_DEBUG
Packit 9eaa09
Same as --debug.
Packit 9eaa09
Packit 9eaa09
.TP
Packit 9eaa09
.B IRQBALANCE_BANNED_CPUS
Packit 9eaa09
Provides a mask of CPUs which irqbalance should ignore and never assign interrupts to.
Packit 9eaa09
Packit 9eaa09
.SH "SIGNALS"
Packit 9eaa09
.TP
Packit 9eaa09
.B SIGHUP
Packit 9eaa09
Forces a rescan of the available IRQs and system topology.
Packit 9eaa09
Packit 9eaa09
.SH "API"
Packit 9eaa09
irqbalance is able to communicate via socket and return it's current assignment
Packit 9eaa09
tree and setup, as well as set new settings based on sent values. Socket is abstract,
Packit 9eaa09
with a name in form of
Packit 9eaa09
.B irqbalance<PID>.sock
Packit 9eaa09
, where <PID> is the process ID of irqbalance instance to communicate with.
Packit 9eaa09
Possible values to send:
Packit 9eaa09
.TP
Packit 9eaa09
.B stats
Packit 9eaa09
Retrieve assignment tree of IRQs to CPUs, in recursive manner. For each CPU node
Packit 9eaa09
in tree, it's type, number, load and whether the save mode is active are sent. For
Packit 9eaa09
each assigned IRQ type, it's number, load, number of IRQs since last rebalancing
Packit 9eaa09
and it's class are sent. Refer to types.h file for explanation of defines.
Packit 9eaa09
.TP
Packit 9eaa09
.B setup
Packit 9eaa09
Get the current value of sleep interval, mask of banned CPUs and and list of banned IRQs.
Packit 9eaa09
.TP
Packit 9eaa09
.B settings sleep <s>
Packit 9eaa09
Set new value of sleep interval, <s> >= 1.
Packit 9eaa09
.TP
Packit 9eaa09
.B settings cpus <cpu_number1> <cpu_number2> ...
Packit 9eaa09
Ban listed CPUs from IRQ handling, all old values of banned CPUs are forgotten.
Packit 9eaa09
.TP
Packit 9eaa09
.B settings ban irqs <irq1> <irq2> ...
Packit 9eaa09
Ban listed IRQs from being balanced, all old values of banned IRQs are forgotten.
Packit 9eaa09
.PP
Packit 9eaa09
irqbalance checks SCM_CREDENTIALS of sender (only root user is allowed to interact).
Packit 9eaa09
Based on chosen tools, ancillary message with credentials needs to be sent with request.
Packit 9eaa09
Packit 9eaa09
.SH "Homepage"
Packit 9eaa09
https://github.com/Irqbalance/irqbalance
Packit 9eaa09