Description of problem: When moving as many kernel threads as possible tuna now raises a TypeError exception for a command that worked before in Fedora 29. Version-Release number of selected component (if applicable): tuna-0.14-3.fc31.noarch How reproducible: always Steps to Reproduce: 1. tuna -U -t '*' -c 0-4 -m 2. 3. Actual results: Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/tuna/tuna.py", line 202, in move_threads_to_cpu schedutils.set_affinity(pid, new_affinity) OSError: [Errno 22] Invalid argument During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/tuna", line 711, in <module> main() File "/usr/bin/tuna", line 593, in main spread = spread) File "/usr/lib/python3.7/site-packages/tuna/tuna.py", line 205, in move_threads_to_cpu if e[0] == errno.ESRCH: TypeError: 'OSError' object is not subscriptable Expected results: Some warnings regarding non-movable threads, but otherwise no such exception and tuna moves as many threads as possible while continuing after each warning. Additional info:
Created attachment 1637120 [details] Fix OSError related TypeErrors and a sys.stderr usage Quick-fix for this issue, tested it under Fedora 31.
Is this package unmaintained?
maintained :) thanks for patch will try on other archs, platforms
I wanted to use tuna instead of taskset and was hit by the same issue: $ sudo tuna -t rcu* -c 0 -m produces the following output: Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/tuna/tuna.py", line 202, in move_threads_to_cpu schedutils.set_affinity(pid, new_affinity) OSError: [Errno 22] Invalid argument During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/tuna", line 711, in <module> main() File "/usr/bin/tuna", line 593, in main spread = spread) File "/usr/lib/python3.7/site-packages/tuna/tuna.py", line 205, in move_threads_to_cpu if e[0] == errno.ESRCH: TypeError: 'OSError' object is not subscriptable $ rpm -qv tuna python3-ethtool python3-linux-procfs python3-schedutils tuna-0.14-3.fc31.noarch python3-ethtool-0.14-3.fc31.x86_64 python3-linux-procfs-0.6.1-3.fc31.noarch python3-schedutils-0.6-8.fc31.x86_64
FEDORA-2020-53dfeb2b9c has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-53dfeb2b9c
FEDORA-2020-04b1a3f536 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-04b1a3f536
FEDORA-2020-0d813bbe3f has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-0d813bbe3f
FEDORA-2020-04b1a3f536 has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-04b1a3f536` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-04b1a3f536 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-53dfeb2b9c has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-53dfeb2b9c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-53dfeb2b9c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-0d813bbe3f has been pushed to the Fedora 30 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-0d813bbe3f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-0d813bbe3f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-53dfeb2b9c has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2020-04b1a3f536 has been pushed to the Fedora 31 stable repository. If problem still persists, please make note of it in this bug report.