1
0
Fork 0
Commit graph

1833 commits

Author SHA1 Message Date
Jaroslav Škarvada
e01ff5db2a
new release (2.21.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-08-20 23:27:36 +02:00
Jaroslav Škarvada
9a38e1bf2c
Merge pull request #549 from yarda/tuned-gui-fixes
gui: multiple fixes and warnings removal
2023-08-18 01:07:20 +02:00
Jaroslav Škarvada
b448eb6fd4 gui: multiple fixes and warnings removal
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-08-18 00:43:10 +02:00
Jaroslav Škarvada
3d4a5cd20e
Merge pull request #548 from yarda/tuned-gui
gui: fixed inconsistent tabs and spaces, introduced by #516
2023-08-17 23:55:28 +02:00
Jaroslav Škarvada
6a67b3273e
Merge pull request #547 from yarda/sighup-serialize
Serialize SIGHUP processing
2023-08-17 23:48:27 +02:00
Jaroslav Škarvada
e047f7ad5e
gui: fixed inconsistent tabs and spaces, introduced by #516
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-08-17 15:17:15 +02:00
Jaroslav Škarvada
60d54c3698
Serialize SIGHUP processing
Resolves: rhbz#2215298

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-08-17 14:55:50 +02:00
Jaroslav Škarvada
03375968cd
Merge pull request #542 from jmencak/rhbz2217015-no-errors-on-offline-cpus
No errors when physical_package_id file does not exist
2023-08-16 23:02:01 +02:00
Jiri Mencak
a0902c27b3 No errors when physical_package_id file does not exist
Show no errors when the physical_package_id file does not exist -- the
CPUs may be offline.

Resolves: rhbz#2217015

Signed-off-by: Jiri Mencak <jmencak@users.noreply.github.com>
2023-08-16 22:40:03 +02:00
Jaroslav Škarvada
2bf04151d9
Merge pull request #516 from uniontech-lilinjie/add-dialog
add error dialog when no active profile set
2023-08-16 20:42:28 +02:00
Jaroslav Škarvada
aa0f6c25a9
Merge pull request #526 from bhllamoreaux/plugin-net-expand
plugin_net: expand variables properly
2023-08-16 20:29:44 +02:00
Jaroslav Škarvada
fdb40fb290
Merge pull request #538 from jmencak/rollback-rename
Rename rollback-related constants and variables
2023-08-16 20:27:31 +02:00
Jaroslav Škarvada
f4c976f2f5
Merge pull request #421 from RHEmployee/ratelimit
Update tests: disable systemd rate limiting.
2023-08-03 18:48:17 +02:00
Robin Hack
178bc00dc8 Update tests: disable systemd rate limiting. 2023-07-27 08:03:42 -04:00
Jaroslav Škarvada
54151a7fcc
Merge pull request #539 from matosatti/realtime-cleanups
Realtime cleanups
2023-06-20 23:49:52 +02:00
Marcelo Tosatti
cbcd1df901 network-latency: enable rcu_normal_after_boot=1 kernel parameter
The rcu_normal_after_boot=1 kernel parameter (which is enabled by
default on CONFIG_PREEMPT_RT kernels) avoids the use of IPIs
to expedite the runtime of synchronize_rcu_expedited() callers.

Enable this in tuned to avoid such IPIs on !CONFIG_PREEMPT_RT kernels
as well.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2023-06-20 14:15:42 -03:00
Marcelo Tosatti
925898b522 remove ktimer_lockless_check sysfs setting from realtime-virtual profiles
The ktimer_lockless_check interface was removed from Red Hat kernels.
Drop the tuned configuration as well.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2023-06-20 14:15:42 -03:00
Marcelo Tosatti
3747701d1c move rtentsk to network-latency profile
The interruptions avoided by the rtentsk logic:

"Add plugin to open a socket with SOF_TIMESTAMPING_OPT_TX_SWHW.

This is for avoiding interruptions due to static key IPIs due
to opening socket with timestamping enabled (by opening a
socket ourselves the static key is kept enabled)."

Are also desired on systems that use cpu-partitioning.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2023-06-20 14:15:42 -03:00
Marcelo Tosatti
c9c81093be move "tsc=reliable" setting from realtime to network-latency tuned configuration
Commit 49cc817871
("realtime: Set tsc as 'reliable'") reads:

"We already disable the clocksource watchdog, it's there to double-check
whether clock results are coherent between reads. But a new reliability
test was introduced in recent kernels[1], tracking tsc drift between
CPUs[2]. It works by programming timers on all CPUs, including isolated
ones, and checks whether the tsc was adjusted in between runs. This
introduces unwarranted latency on real time systems. So let's promote
tsc to 'reliable', which disables both checks."

The timer is also undesired interruption to systems that use cpu-partitioning.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2023-06-20 14:15:42 -03:00
Marcelo Tosatti
4a622d2b5f unify common sysctl settings between realtime and cpu-partitioning profiles
The following sysctl settings are the same between cpu-partitioning and
realtime profiles:

kernel.hung_task_timeout_secs = 600
kernel.nmi_watchdog = 0
vm.stat_interval = 10
kernel.timer_migration = 0

Unify them in the network-latency profile, parent of both profiles.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2023-06-20 14:15:42 -03:00
Jiri Mencak
a26f426430 Rename rollback-related constants and variables
This is a follow-up cleanup PR as agreed in #533.

Signed-off-by: Jiri Mencak <jmencak@users.noreply.github.com>
2023-06-16 10:02:57 +02:00
Jaroslav Škarvada
850368d2f8
Merge pull request #533 from jmencak/rollbacks
Add rollback_on_exit option
2023-06-14 23:40:32 +02:00
Jiri Mencak
7f3a79bbd6 Add rollback option to tuned-main.conf
Add rollback option to tuned-main.conf file.  The option specifies how
TuneD should perform rollbacks.  By default, the old behaviour is
preserved (rollback=auto) and settings are rolled back on TuneD daemon
exit and profile switches.  Using rollback=not_on_exit will result in
TuneD not performing any rollbacks on the daemon exit, however, on
profile switches, settings rollbacks will still be performed.

Resolves: rhbz#2203142

Signed-off-by: Jiri Mencak <jmencak@users.noreply.github.com>
2023-06-14 14:09:30 +02:00
Jaroslav Škarvada
f65b43d1dd
Merge pull request #529 from newkit/master
Added sap-hana-kvm-guest profile
2023-06-14 10:51:06 +02:00
Jaroslav Škarvada
47e6640b9a
Merge pull request #530 from newkit/feature/fixdocu
fixed sap-hana docu regarding processor power settings
2023-06-14 10:46:48 +02:00
Jaroslav Škarvada
503540fffb
Merge pull request #525 from uniontech-lilinjie/spell-err
fix typo
2023-06-14 10:45:52 +02:00
Jaroslav Škarvada
36a6695e4f
Merge pull request #532 from jmencak/fix-log-err
Fix logging in [scheduler] plug-in
2023-06-14 10:45:12 +02:00
Jaroslav Škarvada
d96ea98568
Merge pull request #534 from anthonyeleven/anthonyeleven/improve-README
Recast README into MarkDown with various minor corrections and improvements
2023-06-13 10:47:55 +02:00
Anthony D'Atri
2dda2301f0 Recast README into MarkDown with various minor corrections and improvements
Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2023-06-12 23:17:23 -04:00
Jaroslav Škarvada
fc51fd638a
Merge pull request #536 from trozet/disable_global_forwarding
OCPBUGS-14247: Remove setting ip forwarding via openshift profile
2023-06-09 10:49:05 +02:00
Tim Rozet
1c1da2af04 Remove setting ip forwarding via openshift profile
With openshift/machine-config-operator#3676 we
removed globally setting ip forwarding in MCO. We should not be setting
it in the default profile for OpenShift. We now set it on a per
interface basis as needed. However, by setting proc/sys/net/ipv4/forward
rather than (forwarding) it will reset all the values:

"This variable is special, its change resets all configuration
parameters to their default state (RFC1122 for hosts, RFC1812
for routers)"

We suspect this causes upgrade to fail. NTO sets this to 1, which then
resets all the per interface config that OVNK wrote. Then during upgrade
when there is a tuned profile change, the config change is rolled back
so forward is 0, and now there is no connectivity to kapi and upgrade
fails.

Signed-off-by: Tim Rozet <trozet@redhat.com>
2023-05-30 15:42:52 -04:00
Jiri Mencak
b5b4541f47 Fix logging in [scheduler] plug-in
s/log.err()/log.error()/

Signed-off-by: Jiri Mencak <jmencak@users.noreply.github.com>
2023-05-16 17:35:10 +02:00
Nils Koenig
cb02854965 fixed sap-hana docu regarding processor power settings 2023-05-09 15:11:40 +02:00
Nils Koenig
ac02137019 Added sap-hana-kvm-guest profile
- Corresponding BZ https://bugzilla.redhat.com/show_bug.cgi?id=2173740
    - Updated man page
    - Updated spec file
2023-05-09 14:58:20 +02:00
Jaroslav Škarvada
4e5794b202
Merge pull request #523 from RHEmployee/new-tests-2
tests/beakerlib: Add new test which covers socket API.
2023-05-02 17:00:17 +02:00
Robin Hack
fb8b707aae tests/beakerlib: Add new test which covers socket API.
And fix licences.
2023-04-17 03:04:39 -04:00
Brennan Lamoreaux
e8d41ac3bb plugin_net: expand variables properly
plugin_net: expand variables properly
When attempting verification for the realtime profile, the following
error was observed:
ERROR    tuned.plugins.plugin_net: unknown channels parameter(s): {'check_net_queue_count'}

This seems to be because this line:
channels=combined ${f:check_net_queue_count:${netdev_queue_count}}
in /usr/lib/tuned/realtime/tuned.conf is not correctly parsed.

This should be evaluated out to "channels=combined N", where
"${f:check_net_queue_count:${netdev_queue_count}}" is replaced by the value
of netdev_queue_count in /etc/tuned/realtime-variables.conf.

However, the observed error is becaused this line is split on delimiters
such as ':', and the whole thing gets jumbled up - instead of evaluating
the function to a number.

We fix can this issue by properly evaluating config file functions in plugin_net.py.

Signed-off-by: Brennan Lamoreaux <blamoreaux@vmware.com>
2023-04-14 17:10:23 +00:00
lilinjie
6030c5cbae fix typo
Signed-off-by: lilinjie <lilinjie@uniontech.com>
2023-03-30 15:04:44 +08:00
Jaroslav Škarvada
7b1a20b64c
Merge pull request #522 from RHEmployee/new-tests
tests: add new tests.
2023-03-28 16:57:47 +02:00
Robin Hack
432253afc1 tests: add new tests. 2023-03-28 07:39:21 -04:00
Jaroslav Škarvada
bc41116e95
Merge pull request #517 from yarda/scheduler-fix-traceback-with-runtime-0
scheduler: fix traceback if running with runtime=0
2023-03-17 21:45:17 +01:00
Jaroslav Škarvada
8f1bcad4ef
scheduler: fix traceback if running with runtime=0
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-03-17 13:53:36 +01:00
lilinjie
b9dacb07da add error dialog when no active profile set
Signed-off-by: lilinjie <lilinjie@uniontech.com>
2023-03-14 17:10:31 +08:00
Jaroslav Škarvada
8686b2ba12
Merge pull request #512 from yarda/scheduler-fix-fd-leaks
plugin_scheduler: fix perf fd leaks
2023-03-08 21:00:07 +01:00
Jaroslav Škarvada
61afa12f58
Merge pull request #435 from yarda/verify-fix
tuned-adm: fix typo in the verification output
2023-03-08 20:58:20 +01:00
Jaroslav Škarvada
b5363687e0
Merge pull request #316 from evgeni/explicit-bash
explicitly use /bin/bash for tuned scripts
2023-03-08 20:20:26 +01:00
Jaroslav Škarvada
4725cdcb70
Merge pull request #510 from liuzhilin12/master
fix-tuned-profiles-adoc-error
2023-03-08 20:10:17 +01:00
Jaroslav Škarvada
a0a65375d7
Merge pull request #509 from evgeni/about-icon
set the icon in the about dialog
2023-03-08 20:08:10 +01:00
Jaroslav Škarvada
1c8a7cdc59
Merge pull request #508 from evgeni/dbus-usr
install dbus policy in /usr/share/dbus-1
2023-03-08 20:03:06 +01:00
Jaroslav Škarvada
e5318d86e2
Merge pull request #505 from CZerta/rhbz2118786_better_log
Better log on unsupported hw for pm_qos_resume_latency_us option
2023-03-08 19:57:21 +01:00