1
0
Fork 0
Commit graph

22 commits

Author SHA1 Message Date
Ondřej Lysoněk
f14ae65bd2 Implement udev-based device matching
A new option 'devices_udev_regex' can be used in profile
configuration to specify devices to which a plugin instance
should be applied.

The option can contain a python regular expression, as specified
in https://docs.python.org/2/library/re.html#regular-expression-syntax.
The expression is effectively matched against the output of
udevadm info --query=property -n <device_path>

If the option 'devices_udev_regex' is specified, the 'devices' option
is ignored. If it is not specified, then the matching is done the same
way as previously, i.e. against 'devices'.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2017-02-28 17:39:07 +01:00
Ondřej Lysoněk
a38b6eee99 Remove the '_devices' attribute in plugins
The _device attribute should always be the same as the union of
_assigned_devices and _free_devices, therefore it's redundant.
Its existence in my opinion brings only confusion and a potential
source of inconsistencies.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2017-02-27 14:54:46 +01:00
Jaroslav Škarvada
bfc6214888 plugins: added systemd plugin
This plugin allows setting CPUAffinity in /etc/systemd/system.conf.

Related: rhbz#1359956

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2016-10-06 16:49:42 +02:00
Jaroslav Škarvada
bc5d7acca8 plugin_net: added support for adapter coalesce and features
Usage:

[net]
coalesce=PARAM1 VALUE1 PARAM2 VALUE2
features=PARAM1 VALUE1 PARAM2 VALUE2

It is also possible to specify it by:
coalesce=PARAM1: VALUE1; PARAM2: VALUE2

or:
coalesce=PARAM1 VALUE1, PARAM2 VALUE2

or mix all separators.

Resolves: rhbz#1152539
Resolves: rhbz#1152541

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-05-28 16:43:42 +02:00
Jaroslav Škarvada
60f9e1e217 plugins: made class methods from get_config_options* methods
They were intended to be class methods and that's why there
were defined with the 'cls' parameter, but they actually
weren't class methods.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-05-26 14:24:07 +02:00
Jaroslav Škarvada
6940d280b6 tuned: added verify command
The verify command verifies whether the current system settings matches
activated profile. It also writes all settings from the active profile
with the current / expected values to the log. It is good for checking
what is exactly set and what changed during the run.

Currently custom commands and plugin_scheduler are not supported.

Resolves: rhbz#1150047
Fixes: #34

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-05-18 18:55:01 +02:00
Jaroslav Škarvada
34a9bc42f5 Added tuned-gui
Main implementation was done by Marek Staňa.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-10-01 16:16:45 +02:00
Jaroslav Škarvada
de1bb42821 Makefile, plugin_net: various improvements
- replaced bash loops with GNU Make loops (can now run in parallel)
- preserved original file timestamps during installation
- used install -D instead of mkdir -p
- fixed typo in plugin_net that caused error during byte compilation

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-09-29 17:49:33 +02:00
Jaroslav Škarvada
56ecbd362e tuned: Improved error messages
Made tuned error messages less verbose, but more descriptive if running without
debug option. Also made class from the tuned.utils.commands helper functions.
Its logging can be enabled / disabled.

Resolves: rhbz#1068699

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-09-24 16:15:06 +02:00
Jaroslav Škarvada
bd732feccb plugin_net: added nf_conntrack_hashsize parameter
It maps to /sys/module/nf_conntrack/parameters/hashsize.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-08-27 13:55:05 +02:00
Jaroslav Škarvada
d5017be612 sysctl plugin: use utils.execute for commands execution
Changed utils.execute to return more useful tuple (retcode, str) instead of str.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-02-19 16:39:31 +01:00
Jaroslav Škarvada
aa30d5e165 net plugin: added support for wake_on_lan static tuning
resolves: rhbz#885504

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-02-14 15:20:59 +01:00
Jan Vcelak
291c1a7fb0 net plugin: migrate to new plugin interface 2013-01-24 16:54:20 +01:00
Jan Vcelak
53636b4ba9 net plugin: use hardware enumeration 2013-01-11 15:13:57 +01:00
Jan Vcelak
341e843df1 plugins: remove dynamic_tuning from options, was not conceptual 2012-05-25 11:58:48 +02:00
Jan Vcelak
80b702e6ff net plugin: fix initialization 2012-05-21 23:12:55 +02:00
Jan Vcelak
d91a90a8ad network plugin: add missing plugin description 2012-05-11 16:30:13 +02:00
Jan Kaluza
f3a04dde1d Introduced dynamic_tuning and static_tunning parts of plugin and stopped useless dynamic_tuning for static-only plugins 2012-04-26 09:50:20 +02:00
Jan Kaluza
762c30b97a Cleanup plugins when changing profile 2012-03-12 13:45:56 +01:00
Jan Kaluza
cf7fd4faf6 Hopefully working net plugin 2012-02-20 13:08:59 +01:00
Jan Kaluza
fa4e8745b8 Monitors for the same devices are loaded only once, disk plugin ported from tuned1 2012-02-07 12:43:58 +01:00
Jan Kaluza
1da86d6a14 Network monitor and plugin + nettool util class + fixed setting of updating_devices 2012-02-06 10:52:04 +01:00