Enable IRQ Balance (irqbalance)
An XCCDF Rule
Description
Theirqbalance
service optimizes the balance between
power savings and performance through distribution of hardware interrupts across
multiple processors.
The irqbalance
service can be enabled with the following command:
$ sudo systemctl enable irqbalance.service
Rationale
In an environment with multiple processors (now common), the irqbalance service provides potential speedups for handling interrupt requests.
- ID
- xccdf_org.ssgproject.content_rule_service_irqbalance_enabled
- Severity
- Low
- References
- Updated
Remediation Templates
OS Build Blueprint
[customizations.services]
enabled = ["irqbalance"]
An Ansible Snippet
- name: Enable service irqbalance
block:
- name: Gather the package facts
package_facts:
manager: auto
A Puppet Snippet
include enable_irqbalance
class enable_irqbalance {
service {'irqbalance':
enable => true,
ensure => 'running',
}
}
A Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" unmask 'irqbalance.service'
"$SYSTEMCTL_EXEC" start 'irqbalance.service'
"$SYSTEMCTL_EXEC" enable 'irqbalance.service'