Skip to content

Commit

Permalink
irqbalance Update init script to remove duplicate spaces
Browse files Browse the repository at this point in the history
I have some strange issues with irqbalance sometimes overwriting smp_affinity values for banned/ignored IRQs. The issue is reproduceable and is mitigated when I change theway how the irqbalance command line is built. The only difference between the resulting command is that there is only one space between the -t parameter and the first -i parameter value.

Also see Irqbalance/irqbalance#297

Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
  • Loading branch information
krant authored and schuettecarsten committed Mar 5, 2024
1 parent b5290ac commit c311f0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/irqbalance/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=irqbalance
PKG_VERSION:=1.9.3
PKG_RELEASE:=2
PKG_RELEASE:=3

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/Irqbalance/irqbalance.git
Expand Down
13 changes: 12 additions & 1 deletion utils/irqbalance/files/irqbalance.init
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,22 @@ start_service() {
}
config_list_foreach irqbalance banirq handle_banirq_value

config_get debug irqbalance debug 0

procd_open_instance "irqbalance"
if [ -n "$banned_cpulist" ]; then
procd_set_param env IRQBALANCE_BANNED_CPULIST="$banned_cpulist"
fi
procd_set_param command /usr/sbin/irqbalance -f -c "$deepestcache" -t "$interval" "$banirq"

procd_add_jail_mount_rw /proc
procd_set_param command /usr/sbin/irqbalance -f -c $deepestcache -t $interval $banirq

if [ "$debug" -gt 0 ]; then
procd_append_param command -d
procd_set_param stdout 1
fi
procd_set_param stderr 1

procd_set_param respawn
procd_close_instance
}

0 comments on commit c311f0d

Please sign in to comment.