Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions profiles/realtime/realtime-variables.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion profiles/realtime/tuned.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tuned/profiles/functions/function_check_net_queue_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def execute(self, args):
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