The calc_isolated_cores function expands to the list of cores to
isolate. It accepts optional argument which specifies how many cores
from each socket reserve for housekeeping. If not specified, one core
from each socket is reserved for housekeeping.
Example:
Machine with 2 sockets, each 4 cores, using the following user variable
configuration file, e.g. /etc/tuned/realtime-variables.conf:
isolated_cores=${f:calc_isolated_cores:2}
It will expand to:
isolated_cores=2, 3, 6, 7
I.e. cores 0, 1 and 4, 5 will be used for housekeeping.
Also updated the TuneD profiles to use this builtin function for
isolated_cores preset.
Resolves: rhbz#2093847
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
9 lines
255 B
Text
9 lines
255 B
Text
# Examples:
|
|
# isolated_cores=2,4-7
|
|
# isolated_cores=2-23
|
|
#
|
|
# Reserve 1 core per socket for housekeeping, isolate the rest.
|
|
isolated_cores=${f:calc_isolated_cores:1}
|
|
|
|
# To disable the kernel load balancing in certain isolated CPUs:
|
|
# no_balance_cores=5-10
|