Merge 6ce6f08259 into 0eb28ac3d8
This commit is contained in:
commit
f8a36d093f
3 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue