1
0
Fork 0
Commit graph

1766 commits

Author SHA1 Message Date
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
b4f21db0e9
Merge pull request #500 from CZerta/rhbz2080227_fix
Fixing no _evlist attribute when run without daemon
2023-02-09 17:03:18 +01:00
Jaroslav Škarvada
f584a5d78e
Merge pull request #499 from uniontech-lilinjie/fix-active
fix 'is_active' does not work
2023-02-09 16:56:30 +01:00
Jan Zerdik
d67b619dcd Fixing no _evlist attribute when run without daemon
Relates to: rhbz#2080227

Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
2023-02-09 12:13:06 +01:00
lilinjie
c503d3ec50 fix 'is_active' does not work
Signed-off-by: lilinjie <lilinjie@uniontech.com>
2023-02-09 10:15:51 +08:00
Jaroslav Škarvada
dcda73403d new release (2.20.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-02-08 17:43:58 +01:00
Jaroslav Škarvada
4def25f3e2
Merge pull request #497 from yarda/python2-build-fix
build: fixed FTBFS with python2
2023-02-08 16:06:15 +01:00
Jaroslav Škarvada
a0c8d636c2 build: fixed FTBFS with python2
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-02-08 13:19:26 +01:00
Jaroslav Škarvada
d45a4dbb99
Merge pull request #470 from CZerta/rhbz2113900_unix_socket_api
Expose TuneD API to the Unix Domain Socket.
2023-02-08 12:59:11 +01:00
Jaroslav Škarvada
225a70c224
Merge pull request #485 from CZerta/rhbz2118786_pm_qos_resume_latency_us_option
Adding pm_qos_resume_latency_us option for cpu plugin.
2023-02-08 12:57:45 +01:00
Honza Žerdík
613c7afd57
Merge branch 'master' into rhbz2118786_pm_qos_resume_latency_us_option 2023-02-08 12:26:41 +01:00
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
Jan Zerdik
3490df4422 Adding pm_qos_resume_latency_us option for cpu plugin.i
Resolves: rhbz#2118786

Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
2023-01-16 16:34:21 +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