PATH:
usr
/
lib
/
python3.6
/
site-packages
/
tuned
/
profiles
/
functions
import tuned.logs from . import base log = tuned.logs.get() class check_net_queue_count(base.Function): """ Checks whether the user has specified a queue count for net devices. If not, return the number of housekeeping CPUs. """ def __init__(self): # 1 argument super(check_net_queue_count, self).__init__("check_net_queue_count", 1, 1) def execute(self, args): if not super(check_net_queue_count, self).execute(args): return None if args[0].isdigit(): return args[0] (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
[-] function_assertion_non_equal.py
[edit]
[-] repository.py
[edit]
[-] base.py
[edit]
[-] function_assertion.py
[edit]
[-] function_cpulist2devs.py
[edit]
[-] function_cpuinfo_check.py
[edit]
[-] function_cpulist_unpack.py
[edit]
[-] function_kb2s.py
[edit]
[-] function_regex_search_ternary.py
[edit]
[-] __init__.py
[edit]
[-] function_s2kb.py
[edit]
[-] function_cpulist_present.py
[edit]
[-] function_strip.py
[edit]
[-] function_cpulist_online.py
[edit]
[-] function_cpulist2hex_invert.py
[edit]
[-] function_calc_isolated_cores.py
[edit]
[-] function_virt_check.py
[edit]
[-] function_cpulist_pack.py
[edit]
[-] function_exec.py
[edit]
[+]
__pycache__
[+]
..
[-] function_cpulist_invert.py
[edit]
[-] function_hex2cpulist.py
[edit]
[-] function_check_net_queue_count.py
[edit]
[-] functions.py
[edit]
[-] function_cpulist2hex.py
[edit]