1
0
Fork 0
This commit is contained in:
Honza Žerdík 2026-05-22 12:34:29 +08:00 committed by GitHub
commit f8a36d093f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View file

@ -27,5 +27,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

@ -39,7 +39,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.sched_rt_runtime_us = -1

View file

@ -17,6 +17,9 @@ class CheckNetQueueCount(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.warning("net-dev queue count is not correctly specified, setting it to HK CPUs %s" % (out))
return out