From d9447cfdc20560e8b8d848e3925f40af81b66576 Mon Sep 17 00:00:00 2001 From: Rui Salvaterra Date: Thu, 23 Jun 2022 09:09:13 +0100 Subject: irqbalance: handle deepestcache option Allow the user to specify the level at which irqbalance assumes the cache domains are partitioned. Keep the default value of 2. Signed-off-by: Rui Salvaterra --- utils/irqbalance/files/irqbalance.init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/irqbalance/files/irqbalance.init') diff --git a/utils/irqbalance/files/irqbalance.init b/utils/irqbalance/files/irqbalance.init index 638dcb39f..a221de08b 100644 --- a/utils/irqbalance/files/irqbalance.init +++ b/utils/irqbalance/files/irqbalance.init @@ -16,6 +16,9 @@ start_service() { config_get_bool enabled irqbalance enabled 0 [ "$enabled" -gt 0 ] || return 0 + # 2 is the default + config_get deepestcache irqbalance deepestcache 2 + # 10 is the default config_get interval irqbalance interval 10 @@ -28,7 +31,7 @@ start_service() { config_list_foreach irqbalance banirq handle_banirq_value procd_open_instance "irqbalance" - procd_set_param command /usr/sbin/irqbalance -f -t "$interval" "$banirq" + procd_set_param command /usr/sbin/irqbalance -f -c "$deepestcache" -t "$interval" "$banirq" procd_set_param respawn procd_close_instance } -- cgit v1.2.3