By default the timer tick will fire at the same time on all
CPUs. This causes the jiffies_lock to get contended in the
real-time kernel, as it's a raw spinlock. skew_tick=1 causes
the timer tick to fire at different times on all CPUs,
fixing the contention.
Note skew_tick=1 usage is going to be propagated to the
NFV profiles as well.
Resolves: rhbz#1447938
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
the macros are called .nf and .fi, not .NF and .FI
Test:
% LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings \
-E UTF-8 -l -Tutf8 -Z <file> >/dev/null
<standard input>:53: warning: macro `NF' not defined
<standard input>:74: warning: macro `FI' not defined
Spotted by rpmlint and lintian.
List available profiles when 'tuned-adm profile' is run
without a profile name.
Resolves: rhbz#988433
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
Plugin_net instances can now be given a new 'ring' option with
the following values (see ethtool(8) for their meaning):
rx N
rx-mini N
rx-jumbo N
tx N
The syntax is the same as the syntax for 'coalesce' and 'features'
parameters introduced in commit bc5d7acca8.
Example:
[net]
ring=rx 1024 tx 512
Resolves: https://github.com/redhat-performance/tuned/issues/2
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
Plugin_net instances can now be given a new 'pause' option with
the following values (see ethtool(8) for their meaning):
autoneg on|off
rx on|off
tx on|off
The syntax is the same as the syntax for 'coalesce' and 'features'
parameters introduced in commit bc5d7acca8.
Example:
[net]
pause=autoneg off rx off
Resolves: https://github.com/redhat-performance/tuned/issues/2
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
pkg-config is the most reliable and cross-distro way to get
information about the systemd folders on a system.
only rely on RPM macros when pkg-config is not installed or
systemd.pc is not available.
This will add tuned_initrd to newly installed kernels upon Tuned
restart. It's workaround for rhbz#1442117.
Resolves: rhbz#1441797
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
The strip functions makes string from all arguments and
expands to its stripped version.
Also used in the cpu-partitioning profile to strip output
of the 'mktemp -d' command.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Users can switch to Tuned if they need process blacklisting
(i.e. marking of processes which are allowed to run on
isolated cores). This will be very probably made the default
in next Tuned release.
Related: rhbz#1403309
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Fix an invocation of execute() after its API changed.
Reproducer:
Run tuned with the following profile, and you'll see error messages
'tuned.utils.commands: Executing ethtool error: ethtool: bad command line argument(s)'
in the log. Replace 'enp0s25' with your ethernet interface:
[net]
devices=enp0s25
coalesce=rx-usecs 4
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
Older systemd (systemd-219 tested) doesn't support commas as delimiters.
It also doesn't support ranges (e.g. 2-5). So always write unpacked
CPU list and use spaces as delimiters. Also fixed possible traceback
in case /etc/systemd/system.conf is empty (it's unlikely to happen).
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Fixes the following:
[variables]
v=${f:f1:}
if 'f1' expands to empty string it doesn't traceback now.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>