1
0
Fork 0
Commit graph

1754 commits

Author SHA1 Message Date
Honza Žerdík
6d08f31231
Merge branch 'master' into rhbz2113900_unix_socket_api 2023-02-08 12:24:18 +01:00
Jan Zerdik
3e3f4678e8 Expose TuneD API to the Unix Domain Socket.
TuneD is listening on paths specified in config in option unix_socket_paths and send signals to paths in option unix_socket_signal_paths.
Example call:

printf '[{"jsonrpc": "2.0", "method": "active_profile", "id": 1}, 1]' | sudo nc -U /run/tuned/tuned.sock
printf '{"jsonrpc": "2.0", "method": "switch_profile", "params": {"profile_name": "balanced"}, "id": 1}' | sudo nc -U /run/tuned/tuned.sock

This PR also introduce possibility to disable dbus API in main TuneD config.

Resolves: rhbz#2113900

Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
2023-02-08 12:21:05 +01:00
Jaroslav Škarvada
4a03737bec
Merge pull request #479 from CZerta/bz2095829_cpu_intel_pstate_scaling
Adding support for cpu intel_pstate scaling driver
2023-02-08 12:20:53 +01:00
Jaroslav Škarvada
af1e5142c3
Merge pull request #494 from uniontech-lilinjie/fix-typos
fix typos
2023-02-08 11:15:42 +01:00
Jaroslav Škarvada
0c554106c5
Merge pull request #439 from CZerta/rhbz2080227_leaking_fd
Closing fd from perf module in scheduler plugin
2023-02-08 10:24:16 +01:00
lilinjie
bad27518e5 fix typos
Signed-off-by: lilinjie <lilinjie@uniontech.com>
2023-02-08 10:30:01 +08:00
Jaroslav Škarvada
467782fcea
Merge pull request #492 from jmencak/report-overriden-sysctls
Inform users about reapplied sysctls
2023-02-08 02:12:25 +01:00
Jaroslav Škarvada
8e893c4a9a
Merge pull request #491 from yarda/rhbz1998310
throughput-performance: set net.core.somaxconn to at least 2048
2023-02-08 02:05:50 +01:00
Jaroslav Škarvada
2191d6fe9d
Merge pull request #490 from yarda/python312-fix
Makefile: added fix for python-3.12
2023-02-08 02:05:18 +01:00
Jaroslav Škarvada
f11b403b8a
Merge pull request #489 from yarda/dbus-traceback-fix
D-Bus: only send tracebacks through the D-Bus if in the debug mode
2023-02-08 02:04:25 +01:00
Jaroslav Škarvada
9ab59fe099
Merge pull request #484 from yarda/configparser_no_strict
configparser: use no strict parser to mimic old behavior
2023-02-08 02:02:33 +01:00
Jaroslav Škarvada
33fae48515
Merge pull request #487 from evgeni/patch-2
update vendor_url in policy file
2023-02-08 02:01:27 +01:00
Jaroslav Škarvada
1504bc7e99
Merge pull request #486 from evgeni/patch-1
correct section of the tuned-profiles-openshift manpage
2023-02-08 01:59:39 +01:00
Jaroslav Škarvada
344028dcb4
Merge pull request #478 from heirecka/allow-selecting-pkgconfig
Allow selecting a different pkg-config executable
2023-02-08 01:46:50 +01:00
Jaroslav Škarvada
bc2348b115
Merge pull request #477 from yarda/api_extend_hotplug
API: add support for moving devices between instances
2023-02-08 01:44:36 +01:00
Jaroslav Škarvada
849ba333f3
Merge pull request #476 from liuzhilin12/new_branch
Fix spell error
2023-02-08 01:43:16 +01:00
Jaroslav Škarvada
804f79f229
Merge pull request #474 from liuzhilin12/master
fix tuned/gtk/gui_profile_loader.py spell error
2023-02-08 01:35:09 +01:00
Jaroslav Škarvada
b7a1051a8d
Merge pull request #473 from adriaan42/bootloader-always-generate-bootcmdline
bootloader: create bootcmdline even when skip_grub_config=true
2023-02-08 01:31:22 +01:00
Jaroslav Škarvada
592d0ebeb0
Merge pull request #451 from liangxiao1/aws
profiles: added aws profile for aws ec2 instances
2023-02-08 00:32:33 +01:00
Jiri Mencak
92a0b0d3c2 Inform users about reapplied sysctls
When the reapply_sysctl option in tuned-main.conf is set to 1, "system"
sysctls from /run/sysctl.d/*.conf, /etc/sysctl.d/*.conf and
/etc/sysctl.conf will be set *after* TuneD sysctl settings are applied.
As reapply_sysctl=1 is TuneD default, this can be confusing to TuneD
users who only rely on TuneD profile settings and do not know about this
functionality.  We also need a way to inform other components using
TuneD about this.

This PR adds information about reapplied sysctls in TuneD logs.

Signed-off-by: Jiri Mencak <jmencak@users.noreply.github.com>
2023-02-07 08:38:20 +01:00
Jaroslav Škarvada
841a4ccd7f
API: add support for moving devices between instances
Extends the runtime API by the method:
  instance_acquire_devices(devices, instance_name)

E.g. consider the following TuneD profile:
[cpus_perf]
type=cpu
devices=cpu0, cpu1
governor=performance

[cpus_idle]
type=cpu
devices=${f:cpulist2devs:2-3}
governor=ondemand

[cpus_idle2]
type=cpu
devices=${f:cpulist2devs:4-5,7}
governor=ondemand

Notice that it's possible to use internal function 'cpulist2devs' to easily
specify cpulists.

After the following API call:
  instance_acquire_devices("cpulist:2-5,7", "cpus_perf")

It will result in cpu0 - cpu5 and cpu7 having the "performance" governor.

It's also possible to specify full device names in the API instead of the
cpulist, e.g.:
  instance_acquire_devices("cpu2,cpu3,cpu4,cpu5,cpu7", "cpus_perf")

In case the comma is part of the device name, it can be escaped by "\,".

In case the device name starts with the string "cpulist:", e.g. there is
by accident device named "cpulist:abcd", it's possible to use
"cpulist:cpulist:abcd" to escape it and don't recognize it as the cpulist.

The cpulist expand feature also supports bitmasks variant prefixed by the
0x and written as a string, e.g. "0xffffffff", i.e. all the standard
TuneD cpulist syntaxes are supported.

Resolves: rhbz#2113925

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-02-06 22:58:56 +01:00
Jaroslav Škarvada
097d6294d7
throughput-performance: set net.core.somaxconn to at least 2048
Resolves: rhbz#1998310

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-01-30 11:45:06 +01:00
Jan Zerdik
944e922895 Adding support for cpu intel_pstate scaling driver
Resolves: rhbz#2095829

Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
2023-01-30 10:42:30 +01:00
Jaroslav Škarvada
11e992909e
configparser: use no strict parser to mimic old behavior
Now it should allow duplicate options and sections in the INI files, the
latest value is taken, the previous values are ignored, e.g.:

[selinux]
avc_cache_threshold=4096
avc_cache_threshold=8192

The avc_cache_threshold will be set to the 8192.

Related: rhbz#2071418

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-01-27 01:05:16 +01:00
Jaroslav Škarvada
fae8cb34b0
Makefile: added fix for python-3.12
Resolves: rhbz#2154801

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-01-12 14:38:10 +01:00
Jaroslav Škarvada
ce70d871c8
D-Bus: only send tracebacks through the D-Bus if in the debug mode
Resolves: rhbz#2159680

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-01-12 02:10:48 +01:00
Evgeni Golov
2885432926
update vendor_url in policy file 2022-12-21 21:20:00 +01:00
Evgeni Golov
640f8bd364
correct section of the tuned-profiles-openshift manpage 2022-12-21 20:33:51 +01:00
Jaroslav Škarvada
b894a3ee3f
Merge pull request #482 from christophefontaine/master
Add new cpu-partitioning-powersave profile
2022-12-08 11:28:10 +01:00
Jaroslav Škarvada
f43df56085
Merge pull request #483 from CZerta/rhbz2071418_fix_exception_catch_profiles_loader
Fix for catching exceptions in profile loader.
2022-11-28 14:46:36 +01:00
Jaroslav Škarvada
0d5118c5cd
Merge pull request #475 from lgtm-migrator/codeql
Add CodeQL workflow for GitHub code scanning
2022-11-28 14:33:20 +01:00
Jan Zerdik
69e46a383e Fix for catching exceptions in profile loader.
This was caused by wrong inheritance of exceptions.

Resolves: rhbz#2071418

Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
2022-11-25 15:38:14 +01:00
Christophe Fontaine
3bdc7ab381 Add new cpu-partitioning-powersave profile
The new profile sets the intel_acpi driver to passive mode to
be able to set the standard acpi governors (ondemand/userspace)
and provides more flexibility on the C-states, as it is exposed
as a new variable.

Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
2022-11-22 17:50:30 +01:00
Heiko Becker
fac6fe3a32 Allow selecting a different pkg-config executable
Helpful if you have an arch-prefixed pkg-config, e.g. when cross
compiling.

Signed-off-by: Heiko Becker <heirecka@exherbo.org>
2022-11-11 20:13:47 +01:00
liuzhilin
dcfb97a2c2 fix spell error 2022-11-09 18:32:48 +08:00
liuzhilin
95ece04375 fix spell error 2022-11-09 17:53:51 +08:00
LGTM Migrator
037eb7fb25
Add CodeQL workflow for GitHub code scanning 2022-11-09 07:41:20 +00:00
liuzhilin
20949a3291 fix tuned/gtk/gui_profile_loader.py spell error 2022-11-08 18:13:46 +08:00
Adriaan Schmidt
1696680ada bootloader: create bootcmdline even when skip_grub_config=true
Even when we instruct TuneD to not apply changes to the bootloader config
(skip_grub_config=true) it's useful to expose the generated cmdline.
External tools could then read TuneD's desired cmdline, and adapt configurations
of (so far) unsupported bootloaders like systemd-boot.

Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
2022-11-03 08:58:57 +01:00
Jaroslav Škarvada
420267fa34
Merge pull request #467 from yarda/sysvinit-path-fix
Fixed sysvinit path
2022-10-26 12:26:28 +02:00
Jaroslav Škarvada
a56a2bfb58
Fixed sysvinit path
It's kept for legacy purposes, but the path should be correct.

Resolves: rhbz#2118301

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2022-10-20 15:17:43 +02:00
Jaroslav Škarvada
12fa4d589d
Merge pull request #465 from yarda/master
systemd: relax polkit requirement
2022-10-12 12:18:48 +02:00
Jaroslav Škarvada
1682a7a6f0
systemd: relax polkit requirement
The polkit has D-bus activation thus it will be activated on demand and
we don't need to explicitly activate it.

Resolves: rhbz#2065591

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2022-10-11 12:07:08 +02:00
Jaroslav Škarvada
673260a5c3
Merge pull request #463 from jmencak/hpc-compute-rm-hugepages_treat_as_movable
hpc-compute profile: Remove vm.hugepages_treat_as_movable
2022-10-03 01:14:32 +02:00
Jaroslav Škarvada
38472c57f1
Merge pull request #462 from uniontech-lilinjie/master
fix spelling error
2022-10-03 01:13:34 +02:00
Jaroslav Škarvada
2b3a1895aa
Merge pull request #456 from uniontech-lilinjie/tuned-adm-README
Add missing entries in the OPTIONS section
2022-10-03 01:12:29 +02:00
Jaroslav Škarvada
190b1a4d26
Merge pull request #454 from dagrayvid/openshift-remove-sched
profiles: drop sched_ tuning from openshift-control-plane
2022-10-03 01:10:23 +02:00
Jaroslav Škarvada
548df76476
Merge pull request #464 from valschneider/realtime-ktimers
realtime-virtual-*: Tune priority of new ktimers threads
2022-09-30 23:26:04 +02:00
Valentin Schneider
fabcfe858d realtime-virtual-*: Tune priority of new ktimers threads
The PREEMPT_RT upstream tree [1] is reintroducing a per-CPU kthread for
handling timer expiry named ktimers/${cpu}, and RHEL-RT is following this
approach [2].

The recommended priority tuning for that kthread is to simply match that of
ksoftirqd, which is what is implemented here.

Note that ktimersoftd is the predecessor of ktimers, and isn't present on
RT kernels newer than v5.0.19-rt11 / RHEL-RT 7.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
[2]: https://bugzilla.redhat.com/show_bug.cgi?id=2122220

Resolves: rhbz#2122220
Signed-off-by: Valentin Schneider <vschneid@redhat.com>
2022-09-29 18:55:34 +01:00
Jaroslav Škarvada
6c69be25ab
Merge pull request #431 from CZerta/fix_polkit_auth
Fix in polkit authorization.
2022-09-26 23:32:16 +02:00