Package Details: tuned 2.21.0-1

Git Clone URL: https://aur.archlinux.org/tuned.git (read-only, click to copy)
Package Base: tuned
Description: Daemon that performs monitoring and adaptive configuration of devices in the system
Upstream URL: https://github.com/redhat-performance/tuned
Keywords: daemon monitoring python system tuning
Licenses: GPL
Submitter: irtimmer
Maintainer: SunRed
Last Packager: SunRed
Votes: 20
Popularity: 1.51
First Submitted: 2016-01-26 12:09 (UTC)
Last Updated: 2023-08-29 15:45 (UTC)

Pinned Comments

SunRed commented on 2022-07-04 15:25 (UTC)

The package was missing compiled python modules prior to version 2.18.0-2. Thanks goes to @ChrisTX for the hint. If you encounter errors like these

tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/__init__.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/consts.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/exceptions.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/logs.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/patterns.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/version.cpython-310.pyc exists in filesystem

when updating, append

--overwrite /usr/lib/python3.10/site-packages/tuned/__pycache__\* --overwrite /usr/lib/python3.10/site-packages/tuned/\*/__pycache__\*

to your pacman or AUR helper command when installing/updating.

Latest Comments

1 2 Next › Last »

everyx commented on 2023-05-05 13:29 (UTC)

Traceback (most recent call last):
  File "/usr/bin/tuned", line 27, in <module>
    import tuned.logs
ModuleNotFoundError: No module named 'tuned'

Due to the upgrade of the Python version, you may need to rebuild the package and install it again.

SunRed commented on 2022-11-09 18:28 (UTC)

@everyx imo conflicts should be added if otherwise the package isn't installable due conflicts on the filesystem but not necessarily if functionality overlaps. Since all these packages depend on a systemd service to be active it should be up to the user if packages are installed at the same time and what services are started.

everyx commented on 2022-11-01 02:11 (UTC) (edited on 2022-11-01 02:11 (UTC) by everyx)

Should we add conflict with power-profiles-daemon and cpupower?

SunRed commented on 2022-07-04 15:25 (UTC)

The package was missing compiled python modules prior to version 2.18.0-2. Thanks goes to @ChrisTX for the hint. If you encounter errors like these

tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/__init__.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/consts.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/exceptions.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/logs.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/patterns.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/version.cpython-310.pyc exists in filesystem

when updating, append

--overwrite /usr/lib/python3.10/site-packages/tuned/__pycache__\* --overwrite /usr/lib/python3.10/site-packages/tuned/\*/__pycache__\*

to your pacman or AUR helper command when installing/updating.

SunRed commented on 2022-07-04 15:20 (UTC)

@ChrisTX Thanks for the contribution. I didn't know about this.

ChrisTX commented on 2022-07-01 09:01 (UTC)

The package is creating __pycache__ orphans: Any package containing Python modules needs to precompile them, otherwise running them will create orphaned files in the __pycache__ folder.

Not only will the files not be properly refreshed, but they also remain after upgrading python versions, causing a lot of orphaned files.

This can be easily fixed by adding

python -m compileall -d /usr/lib "$pkgdir/usr/lib"
python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"

in the package() step. Compare what was done in libxml2 by the Arch devs, PKGCONFIG and the related announcement.

yochananmarqos commented on 2021-01-08 05:05 (UTC)

@SunRed: Instead of farting around in the package() function, do this in a prepare() function instead:

prepare() {
    cd "${pkgname}-${pkgver}"
    mv libexec lib

    sed -i 's/libexec/lib/g' Makefile
    sed -i 's/sbin/bin/g' Makefile
}

SunRed commented on 2020-12-25 06:48 (UTC)

@STiNG Yes, I had that error as well and the issue was a python-configobj version (5.0.6-10) where downgrading to the previous version (5.0.6-9) helped fix it temporarily. There is a new version out now that fixes the issue. In addition to that I updated the tuned package to the latest version. :)

STiNG commented on 2020-12-22 18:51 (UTC)

Getting this error: tuned-adm active Traceback (most recent call last): File "/usr/bin/tuned-adm", line 29, in <module> from tuned.utils.global_config import GlobalConfig File "/usr/lib/python3.9/site-packages/tuned/utils/global_config.py", line 3, in <module> from validate import Validator ModuleNotFoundError: No module named 'validate'

egrupled commented on 2019-01-20 20:53 (UTC)

@aorth please take a look at https://aur.archlinux.org/packages/tuned-git/ and discussion there for a proper list of dependencies needed (aside of python version).