1
0
Fork 0
tuned/profiles/cpu-partitioning
Jaroslav Škarvada 39e6d14bdf
builtin functions: added calc_isolated_cores function
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>
2022-08-09 13:51:45 +02:00
..
00-tuned-pre-udev.sh cpu-partitioning,realtime: set cpumasks of all workqueues 2021-05-12 21:17:27 +02:00
cpu-partitioning-variables.conf builtin functions: added calc_isolated_cores function 2022-08-09 13:51:45 +02:00
script.sh cpu_partitioning: fixed no_balance_cores on newer kernels 2022-01-02 20:13:30 +01:00
tuned.conf cpu_partitioning: fixed no_balance_cores on newer kernels 2022-01-02 20:13:30 +01:00