1
0
Fork 0

Allow to skip channels parameter in realtime profiles just by changing variables config.

Related: rhbz#2148990

Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
This commit is contained in:
Jan Zerdik 2023-02-20 11:05:32 +01:00
parent dcda73403d
commit 6ce6f08259
3 changed files with 5 additions and 1 deletions

View file

@ -18,5 +18,6 @@ isolate_managed_irq=Y
# below. Ideally this should be set to the number of housekeeping CPUs i.e.,
# in the example given below it is assumed that the system has 4 housekeeping
# (non-isolated) CPUs.
# When set to "None" the parameter is skipped.
#
# netdev_queue_count=4

View file

@ -36,7 +36,7 @@ isolate_managed_irq = ${isolate_managed_irq}
managed_irq=${f:regex_search_ternary:${isolate_managed_irq}:\b[y,Y,1,t,T]\b:managed_irq,domain,:}
[net]
channels=combined ${f:check_net_queue_count:${netdev_queue_count}}
channels=${f:regex_search_ternary:${netdev_queue_count}:^[Nn][Oo][Nn][Ee]$::combined ${f:check_net_queue_count:${netdev_queue_count}}}
[sysctl]
kernel.hung_task_timeout_secs = 600

View file

@ -17,6 +17,9 @@ class check_net_queue_count(base.Function):
return None
if args[0].isdigit():
return args[0]
# Check for none to get rid of WARN log
if args[0].lower() == "none":
return None
(ret, out) = self._cmd.execute(["nproc"])
log.warn("net-dev queue count is not correctly specified, setting it to HK CPUs %s" % (out))
return out