1
0
Fork 0
Commit graph

888 commits

Author SHA1 Message Date
Jaroslav Škarvada
4483641602
realtime-virtual-host/guest: added suffix to cmdline
This is a workaround how to overcame the internal parser / merger limitation.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-05-29 17:34:42 +02:00
Luiz Capitulino
9bc020df37 realtime: use skew_tick=1 in kernel cmdline
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>
2017-05-29 17:30:17 +02:00
Luiz Capitulino
fdff5f15b9 realtime: drop unhelpful comment
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2017-05-29 17:30:15 +02:00
Luiz Capitulino
283a2b9aa2 nfv-host: inherit kernel cmdline from realtime profile
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2017-05-29 17:30:09 +02:00
Luiz Capitulino
6cf54b6315 nfv-guest: inherit kernel cmdline from realtime profile
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2017-05-29 17:30:04 +02:00
Jaroslav Škarvada
44bc197feb
spec: conditionalized qemu-kvm-tools-rhev dependency
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-05-29 13:55:39 +02:00
Jaroslav Škarvada
9fae7ebecc
Makefile: switched to gz from bz2 due to google releases
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-05-29 11:33:20 +02:00
Jaroslav Škarvada
3eca5def91 Merge pull request #51 from krsacme/cpulist_negation_support
Add negation support for cpulist_upack function
2017-05-17 14:45:41 +02:00
Saravanan KR
709b059afc Add negation support for cpulist_upack function
cpulist_unpack supports range, it would be good add negation
support via ^ or !, inorder to exclude cpus from the specified
range.
Fixes #49
2017-05-15 11:42:54 +05:30
Jaroslav Škarvada
ae487729a4
service: dropped syslog.target and added reference to other man pages
Thanks to gustavo panizzo.

Fixes #47

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-05-12 16:15:40 +02:00
gustavo panizzo
c139e6e01e fix lintian warnings on desktop file 2017-05-12 14:17:02 +02:00
Jaroslav Škarvada
595a6e2ca7 Merge pull request #50 from voxadam/patch-1
Updated help outputs
2017-05-12 14:10:19 +02:00
Jaroslav Škarvada
423bc9efb8 Merge pull request #48 from evgeni/spelling
more spelling fixes found by lintian
2017-05-12 14:09:16 +02:00
Adam Hunt
3009a7a28b Updated help outputs
Added note about restarting tuned using 'systemclt' in addition to the existing reference to 'service'.
2017-05-10 04:26:02 -07:00
Jaroslav Škarvada
8af58432af
inventory: added workaround for pyudev < 0.18
This is needed for e.g. RHEL-7.4.

Related: rhbz#1251240

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-05-05 13:51:05 +02:00
Evgeni Golov
6e8d0b591f more spelling fixes found by lintian 2017-04-30 11:02:44 +02:00
Jaroslav Škarvada
4be4754646
nvf-guest: qemu-kvm-tools-rhev made weak dependency
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-04-28 16:39:55 +02:00
Jaroslav Škarvada
af56ac35ed
cpu-partitioning: used tuned instead of tuna for cores isolation
Resolves: rhbz#1442229

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-04-28 16:26:12 +02:00
Jaroslav Škarvada
cbaceef1ad Merge pull request #44 from evgeni/move-to-github
change Source in spec file to github
2017-04-26 20:15:50 +02:00
Evgeni Golov
de1a6ab536 change Source in spec file to github 2017-04-26 18:45:06 +02:00
Jaroslav Škarvada
68ca252841 Merge pull request #36 from evgeni/test-fixes
profile units are OrderedDicts, not lists
2017-04-26 18:22:55 +02:00
Jaroslav Škarvada
d661dc36b2 Merge pull request #34 from evgeni/pkg-config
try to get unitdir and tmpdir from pkg-config
2017-04-26 18:17:13 +02:00
Jaroslav Škarvada
320a704232 Merge pull request #37 from olysonek/plugin_net_pr
plugin_net: Implement setting 'pause' and 'ring' parameters
2017-04-26 18:15:29 +02:00
Jaroslav Škarvada
c322cd25c1 Merge pull request #39 from olysonek/tuned_adm
List available profiles on 'tuned-adm profile'
2017-04-26 17:56:23 +02:00
Jaroslav Škarvada
0e37280609 Merge pull request #40 from evgeni/manpages
fix NF/FI macros in manpages
2017-04-26 17:05:06 +02:00
Jaroslav Škarvada
12b4e8174f Merge pull request #41 from evgeni/spelling
fix a few spelling errors in the manpages
2017-04-26 17:02:50 +02:00
Jaroslav Škarvada
23654b0e75 Merge pull request #42 from evgeni/desktop-file
drop the encoding keyword from the desktop file
2017-04-26 17:00:57 +02:00
Jaroslav Škarvada
584f2d5c03 Merge pull request #43 from evgeni/systemd-unit-doc
add Documentation entry to tuned.service
2017-04-26 16:59:34 +02:00
Jaroslav Škarvada
de880346fa
new release (2.8.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-04-26 16:55:04 +02:00
Evgeni Golov
9683aae7a4 add Documentation entry to tuned.service 2017-04-22 15:50:01 +02:00
Evgeni Golov
0a2cfd4b4d drop the encoding keyword from the desktop file
it's deprecated:
 https://specifications.freedesktop.org/desktop-entry-spec/1.0/apc.html
2017-04-22 15:09:21 +02:00
Evgeni Golov
77e4ccb1b6 fix a few spelling errors in the manpages
spotted by Debian's lintian tool
2017-04-22 15:06:41 +02:00
Evgeni Golov
1353a22ca2 fix NF/FI macros in manpages
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.
2017-04-22 10:12:03 +02:00
Ondřej Lysoněk
82997069b4 List available profiles on 'tuned-adm profile'
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>
2017-04-21 16:43:55 +02:00
Ondřej Lysoněk
2d83889c7b plugin_net: Implement setting 'ring' parameters
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>
2017-04-18 13:56:36 +02:00
Ondřej Lysoněk
2d9a445d44 plugin_net: Implement setting 'pause' parameters
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>
2017-04-18 13:56:36 +02:00
Ondřej Lysoněk
7c818982f8 plugin_net: Refactor
Refactor plugin_net to make its future extension easier.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2017-04-18 13:56:36 +02:00
Evgeni Golov
24fad6bbea fix empty DeviceMatcher rules 2017-04-18 12:17:55 +02:00
Evgeni Golov
7f087627ef move DeviceMatcher to hardware 2017-04-18 12:17:42 +02:00
Evgeni Golov
7aafbccb32 profile units are OrderedDicts, not lists
refs #35
2017-04-18 11:53:53 +02:00
Evgeni Golov
cd17eaec8c try to get unitdir and tmpdir from pkg-config
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.
2017-04-18 10:26:48 +02:00
Jaroslav Škarvada
f180a80013
bootloader: workaround for adding tuned_initrd to new kernels on restart
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>
2017-04-14 00:02:34 +02:00
Jaroslav Škarvada
8c34b7384e
builtin functions: add strip
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>
2017-04-13 23:23:58 +02:00
Jaroslav Škarvada
8cde3e1b3c
cpu-partitioning: use tuna for cores isolation
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>
2017-04-13 21:51:46 +02:00
Jaroslav Škarvada
c7e40efb74 Merge pull request #33 from olysonek/execute_fix
plugin_net: Fix invocation of execute()
2017-04-13 15:55:19 +02:00
Ondřej Lysoněk
da630790ef plugin_net: Fix invocation of execute()
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>
2017-04-13 15:38:44 +02:00
Jaroslav Škarvada
191785a054
scheduler: fix more python-linux-procfs tracebacks
Fixes traceback if the queried process disappears.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-04-12 16:27:53 +02:00
Jaroslav Škarvada
cdefe91ee1
scheduler: do not traceback if process dissapears during enumeration
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-04-12 15:52:52 +02:00
Jaroslav Škarvada
3023c9e860
systemd: added support for older systemd CPUAffinity syntax
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>
2017-04-11 19:28:59 +02:00
Jaroslav Škarvada
94b7fdd41d
builtin functions: parser not traceback if func expands to empty string
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>
2017-04-11 17:27:43 +02:00