irqbalance: add banned_cpulist option
Configure CPUs to ignore with `IRQBALANCE_BANNED_CPULIST` environment variable Signed-off-by: Hentioe Cl <meow.i5.br@gmail.com> [added PKG_RELEASE bump]
This commit is contained in:
parent
1aac8ada87
commit
e1ff9619a3
3 changed files with 10 additions and 1 deletions
|
@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=irqbalance
|
||||
PKG_VERSION:=1.9.2
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/Irqbalance/irqbalance.git
|
||||
|
|
|
@ -8,6 +8,9 @@ config irqbalance 'irqbalance'
|
|||
# The default value is 10 seconds
|
||||
#option interval '10'
|
||||
|
||||
# Specify excluded cpulist
|
||||
#option banned_cpulist '0'
|
||||
|
||||
# List of IRQ's to ignore
|
||||
#list banirq '36'
|
||||
#list banirq '69'
|
||||
|
|
|
@ -22,6 +22,9 @@ start_service() {
|
|||
# 10 is the default
|
||||
config_get interval irqbalance interval 10
|
||||
|
||||
# empty is the default
|
||||
config_get banned_cpulist irqbalance banned_cpulist ''
|
||||
|
||||
# A list of IRQ's to ignore
|
||||
banirq=""
|
||||
handle_banirq_value()
|
||||
|
@ -31,6 +34,9 @@ start_service() {
|
|||
config_list_foreach irqbalance banirq handle_banirq_value
|
||||
|
||||
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_set_param respawn
|
||||
procd_close_instance
|
||||
|
|
Loading…
Reference in a new issue