1
0
Fork 0
Commit graph

1818 commits

Author SHA1 Message Date
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
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
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
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
Jaroslav Škarvada
2eca7b7e76
plugin_scheduler: fix perf fd leaks
Resolves: rhbz#2173938

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-02-28 17:04:55 +01:00
Jan Zerdik
b12c96c8ab Better log on unsupported hw for pm_qos_resume_latency_us option
Related: rhbz#2118786

Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
2023-02-20 14:13:09 +01:00
liuzhilin
d31e05bde8 fix-tuned-profiles-adoc-error 2023-02-20 17:20:21 +08:00
Evgeni Golov
3854797abb explicitly use /bin/bash for tuned scripts 2023-02-19 15:23:12 +01:00
Evgeni Golov
c1fad024c7 set the icon in the about dialog
otherwise we just get the "image missing" icon
2023-02-19 14:45:50 +01:00
Evgeni Golov
7238f72928 install dbus policy in /usr/share/dbus-1
/etc is for local overrides, not for package-shipped policies
2023-02-18 19:56:34 +01:00
Jaroslav Škarvada
ce3d092628
new release (2.20.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-02-17 21:56:58 +01:00
Jaroslav Škarvada
7a04dd1e32
Merge pull request #507 from yarda/tuned-adm-switch-profile-err-msg
tuned-adm: better error message for unauthorized switch_profile
2023-02-17 21:44:39 +01:00
Jaroslav Škarvada
a02af920a2
Merge pull request #506 from yarda/man-fix
man: updated manual pages to be more consistent
2023-02-17 21:44:15 +01:00
Jaroslav Škarvada
5ffa4d0630
Merge pull request #504 from yarda/ncat-drop
spec: dropped unneeded ncat dependency
2023-02-17 21:43:48 +01:00
Jaroslav Škarvada
e4bbbf018f
tuned-adm: better error message for unauthorized switch_profile
As a sideeffect of 08b348b7a4 we got
strange error messages for unauthorized switch_profile requests. This
commit tries to improve it.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-02-15 21:33:24 +01:00
Jaroslav Škarvada
207ae6f84b
man: updated manual pages to be more consistent
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-02-15 18:14:30 +01:00
Jaroslav Škarvada
22a9ba47ca
Merge pull request #502 from liuzhilin12/master
fix log error
2023-02-14 12:53:00 +01:00
Jaroslav Škarvada
94224c636d
Merge pull request #501 from jmencak/override-report-only-different
Report reapplied sysctls only on different values
2023-02-14 12:45:33 +01:00
Jaroslav Škarvada
0d5ca5a93a
spec: dropped unneeded ncat dependency
Fixes #503

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-02-14 12:40:29 +01:00