Bug 429151 - [Request] Manage CPU affinity
Summary: [Request] Manage CPU affinity
Status: RESOLVED FIXED
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-15 14:32 UTC by Alex Barrero
Modified: 2026-07-16 15:58 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.8.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Barrero 2020-11-15 14:32:17 UTC
This is not an issue but a request for future releases if this app is going to replace current system monitor.

Could be possible to add a graphical interface to manage CPU affinity? Set a tool to enable the binding and unbinding of a process/thread/slice/cgroup to a CPU core or a range of cores, so that the process or thread will execute only on the designated core or cores rather than any CPU?

This can be achieved from command line with taskset, but add such a tool to the new system monitor would be awesome!

Thanks!

Related to ksysguard issue https://bugs.kde.org/show_bug.cgi?id=127021
Comment 2 Arjen Hiemstra 2026-07-07 11:14:30 UTC
Git commit 92768bf972a7b0aa440fc9048d4363a09f9b2294 by Arjen Hiemstra, on behalf of Taras Oleksyn.
Committed on 07/07/2026 at 11:06.
Pushed by ahiemstra into branch 'master'.

processcore: add functionality to set CPU affinity

M  +21   -0    processcore/helper.cpp
M  +1    -0    processcore/helper.h
M  +17   -0    processcore/process.cpp
M  +3    -0    processcore/process.h
M  +62   -0    processcore/process_controller.cpp
M  +39   -0    processcore/process_controller.h
M  +14   -0    processcore/processes_dragonfly_p.cpp
M  +14   -0    processcore/processes_freebsd_p.cpp
M  +102  -0    processcore/processes_linux_p.cpp
M  +12   -0    processcore/processes_local_p.h
M  +14   -0    processcore/processes_netbsd_p.cpp
M  +14   -0    processcore/processes_openbsd_p.cpp

https://invent.kde.org/plasma/libksysguard/-/commit/92768bf972a7b0aa440fc9048d4363a09f9b2294
Comment 3 Nate Graham 2026-07-10 18:59:26 UTC
Not fully implemented yet; only the backend side has done in. Re-opening until the UI side is merged as well.
Comment 4 Nate Graham 2026-07-16 15:58:13 UTC
Git commit 9fc50b900f37808a6db032b0afb3116ed2ece3c3 by Nate Graham, on behalf of Taras Oleksyn.
Committed on 16/07/2026 at 15:58.
Pushed by ngraham into branch 'master'.

Add UI to set CPU affinity
FIXED-IN: 6.8.0

M  +33   -0    src/faces/applicationstable/contents/ui/FullRepresentation.qml
M  +26   -0    src/faces/processtable/contents/ui/FullRepresentation.qml
A  +148  -0    src/table/AffinityDialog.qml     [License: LGPL(3+eV) LGPL(v3.0) LGPL(v2.1)]
M  +1    -0    src/table/CMakeLists.txt

https://invent.kde.org/plasma/plasma-systemmonitor/-/commit/9fc50b900f37808a6db032b0afb3116ed2ece3c3