It needs to use unique ',ANYSTRING' suffix, everything after the last ','
will be stripped by the parser, e.g.:
[balanced,1]
/FILE1=RE1
[balanced,2]
/FILE2=RE2
This will set 'balanced' profile in case there is FILE1 matching RE1 or
FILE2 matching RE2 or both. There is no need to use the suffix
if the profile is specified only once.
Also improved description in the recommend.conf.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Incorporated fix from Arnaldo Carvalho de Melo <acme@redhat.com>.
Updated credits and made them UTF-8.
Resolves: rhbz#1247184
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
- unquote '"' from the cmdline, i.e. the following will give same results:
[bootloader]
cmdline="vga=ask"
[bootloader]
cmdline=vga=ask
no more double quotes in grub.cfg:
set tuned_params=""vga=ask""
- fixed /etc/default/grub, so grub2-mkconfig no longer introduces
space before $tuned_params added to kernel in grub.cfg
- added support for 'linux' keyword (on aarch64)
- minor improvements regarding newlines
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Precompiling regular expressions for runtime tuning and do not
log errors like process doesn't exist in runtime tuning.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
It can now tune newly created processes. This functionality
is by default on and can be disabled in tuned profile by setting:
[scheduler]
runtime = 0
This is temporaly workaround. In the future this will be handled
by per-plugin dynamic_tuning configuration and not by "runtime"
option.
resolves: rhbz#1148546
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Most of the functionality don' work in this mode, it just
applies the settings, no rollback possible.
Disable daemon by setting 'daemon = 0' in /etc/tuned/tuned-main.conf
This settings can be overridden if running tuned with '-d' command line
option. In such case daemon mode will be used.
Resolves: rhbz#1068663
Also fixed interpretation of booleans in main config.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Profiles shipped in tuned-profiles-nfv subpackage. The content was provided
by Jeremy Eder <jeder@redhat.com> and Clark Williams <williams@redhat.com>.
Resolves: rhbz#1228803
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
The rhbz#1235768 is can't fix, but using:
After=network.target
should fix the ordering of services, so sysctl is no more rewritten by systemd.
Related: rhbz#1189263
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This target will remove all RPMs older than cca. one week if the total space
occupied by RPMs is larger than 5 MB.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Also removed transparent_hugepages from throughput-performance profile.
Added support for 'madvise' setting of transparent_hugepages.
Resolves: rhbz#1189868
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
If there is no hdparm command it now outputs warning to the log, disables
all hdparm related commands and no hdparm execution error is output.
Related: rhbz#1191775
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This allows runnig helper scripts from the main script by just using
the current directory './' path, e.g. to run helper_script from main script:
./helper_script
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
There is continuous integration Jenkins bind to the scratch builds.
By running scratch build during the nightly build all tests will be
run by Jenkins.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Example of recommend.conf content:
[powersave]
/etc/machine.conf=.*laptop.*
This will recommend powersave profile if there is /etc/machine.conf containing
string 'laptop'. The check will not match if the file doesn't exist.
To just check for file existence:
[powersave]
/etc/machine.conf=.*
This will match if there is /etc/machine.conf file.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
On some platforms the 'recommend' functionality doens't make sense
as there is only one product variant. On such platforms the recommend
functionality can be disabled by adding/changing the following in
the global config (/etc/tuned/tuned-main.conf):
recommend_command = 0
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
If there is no scaling governor/driver, the CPU is silently skipped when setting
governor.
Related: rhbz#1212836
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
It converts CPU list to hexadecimal CPU mask and inverts it.
Example:
[variables]
cpus = ${f:cpulist2hex_invert:1-2}
On machine with four CPUs it returns 00000009.
Related: rhbz#1225135
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
It's possible to combine CPU lists with hexmasks, but hexmask needs to be
prefixed by "0x". Hexmasks can include commas. To separate hexmask from
CPU list use double comma ',,' (there can be whitespaces between commas)
Example:
[variables]
cpus = ${f:cpulist_unpack:1-2,0x8,ffffffff,,37-39}
It's also possible to separate hexmasks and CPU list by specifying
CPU list as another argument, e.g.:
[variables]
cpus = ${f:cpulist_unpack:1-2,0x8,ffffffff:37-39}
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>